-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support RevisionableStorageInterface and methods ::loadRevision() and…
… ::deleteRevision() deprecation (#576)
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Drupal\Core\Entity; | ||
|
||
interface EntityStorageInterface { | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
stubs/Drupal/Core/Entity/RevisionableStorageInterface.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Drupal\Core\Entity; | ||
|
||
interface RevisionableStorageInterface extends EntityStorageInterface { | ||
|
||
/** | ||
* @param int|numeric-string $revision_id | ||
* @return \Drupal\Core\Entity\RevisionableInterface|null | ||
* @not-deprecated | ||
*/ | ||
public function loadRevision($revision_id); | ||
|
||
/** | ||
* @param int|numeric-string $revision_id | ||
* @not-deprecated | ||
*/ | ||
public function deleteRevision($revision_id): void; | ||
|
||
} |