content_entity_base-8.x-1.x-dev/src/Entity/Storage/RevisionableStorageInterface.php
src/Entity/Storage/RevisionableStorageInterface.php
<?php namespace Drupal\content_entity_base\Entity\Storage; use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Entity\EntityStorageInterface; /** * Defines some additional storage methods used for revision support. */ interface RevisionableStorageInterface extends EntityStorageInterface { /** * Counts the number of revisions in the default language. * * @param \Drupal\Core\Entity\ContentEntityInterface $entity * The entity. * * @return int The number of revisions in the default language. * The number of revisions in the default language. */ public function countDefaultLanguageRevisions(ContentEntityInterface $entity); /** * Gets a list of revision IDs for a specific entity. * * @param \Drupal\Core\Entity\ContentEntityInterface $entity * The content entity. * * @return int[] * Entity revision IDs (in ascending order). */ public function revisionIds(ContentEntityInterface $entity); }