abstract protected function RevisionControllerTrait::getRevisionDescription in Entity API 8
Same name and namespace in other branches
- 8.0 src/Controller/RevisionControllerTrait.php \Drupal\entity\Controller\RevisionControllerTrait::getRevisionDescription()
Returns a string providing details of the revision.
E.g. Node describes its revisions using {date} by {username}. For the non-current revision, it also provides a link to view that revision.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $revision: The entity revision.
bool $is_current: TRUE if the revision is the current revision.
Return value
string Returns a string to provide the details of the revision.
1 call to RevisionControllerTrait::getRevisionDescription()
- RevisionControllerTrait::revisionOverview in src/
Controller/ RevisionControllerTrait.php - Generates an overview table of older revisions of an entity.
1 method overrides RevisionControllerTrait::getRevisionDescription()
- RevisionOverviewController::getRevisionDescription in src/
Controller/ RevisionOverviewController.php - Returns a string providing details of the revision.
File
- src/
Controller/ RevisionControllerTrait.php, line 86
Class
- RevisionControllerTrait
- Defines a trait for common revision UI functionality.
Namespace
Drupal\entity\ControllerCode
protected abstract function getRevisionDescription(ContentEntityInterface $revision, $is_current = FALSE);