reverted: --- b/core/lib/Drupal/Core/Entity/ContentEntityStorageInterface.php +++ a/core/lib/Drupal/Core/Entity/ContentEntityStorageInterface.php @@ -23,15 +23,4 @@ */ public function createTranslation(ContentEntityInterface $entity, $langcode, array $values = []); - /** - * Counts the number of revisions in the default language. - * - * @param \Drupal\Core\Entity\EntityInterface $entity - * The entity for which to to count the revisions. - * - * @return int - * The number of revisions in the default language. - */ - public function countDefaultLanguageRevisions(EntityInterface $entity); - } diff -u b/core/modules/media/tests/src/Functional/MediaRevisionTest.php b/core/modules/media/tests/src/Functional/MediaRevisionTest.php --- b/core/modules/media/tests/src/Functional/MediaRevisionTest.php +++ b/core/modules/media/tests/src/Functional/MediaRevisionTest.php @@ -159,7 +159,7 @@ $this->drupalGet("media/" . $media->id() . "/revisions/" . $media->getRevisionId() . "/view"); $assert->pageTextContains('Foobaz'); } - + /** * Creates a new revision for a given media item. * only in patch2: unchanged: --- a/core/lib/Drupal/Core/Entity/Sql/SqlEntityStorageInterface.php +++ b/core/lib/Drupal/Core/Entity/Sql/SqlEntityStorageInterface.php @@ -2,6 +2,7 @@ namespace Drupal\Core\Entity\Sql; +use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityStorageInterface; /** @@ -21,4 +22,15 @@ */ public function getTableMapping(array $storage_definitions = NULL); + /** + * Counts the number of revisions in the default language. + * + * @param \Drupal\Core\Entity\EntityInterface $entity + * The entity for which to to count the revisions. + * + * @return int + * The number of revisions in the default language. + */ + public function countDefaultLanguageRevisions(EntityInterface $entity); + }