Skip to content

Commit

Permalink
Support RevisionableStorageInterface and methods ::loadRevision() and…
Browse files Browse the repository at this point in the history
… ::deleteRevision() deprecation (#576)
  • Loading branch information
mglaman authored Jun 14, 2023
1 parent 848c2bf commit 7da46c1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions stubs/Drupal/Core/Entity/EntityStorageInterface.stub
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 stubs/Drupal/Core/Entity/RevisionableStorageInterface.stub
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;

}

0 comments on commit 7da46c1

Please sign in to comment.