Skip to content

Commit 7da46c1

Browse files
authored
Support RevisionableStorageInterface and methods ::loadRevision() and ::deleteRevision() deprecation (#576)
1 parent 848c2bf commit 7da46c1

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace Drupal\Core\Entity;
4+
5+
interface EntityStorageInterface {
6+
7+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace Drupal\Core\Entity;
4+
5+
interface RevisionableStorageInterface extends EntityStorageInterface {
6+
7+
/**
8+
* @param int|numeric-string $revision_id
9+
* @return \Drupal\Core\Entity\RevisionableInterface|null
10+
* @not-deprecated
11+
*/
12+
public function loadRevision($revision_id);
13+
14+
/**
15+
* @param int|numeric-string $revision_id
16+
* @not-deprecated
17+
*/
18+
public function deleteRevision($revision_id): void;
19+
20+
}

0 commit comments

Comments
 (0)