abstract protected function RevisionControllerTrait::hasRevertRevisionAccess in Entity API 8
Same name and namespace in other branches
- 8.0 src/Controller/RevisionControllerTrait.php \Drupal\entity\Controller\RevisionControllerTrait::hasRevertRevisionAccess()
Determines if the user has permission to revert revisions.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity to check revert access for.
Return value
bool TRUE if the user has revert access.
1 call to RevisionControllerTrait::hasRevertRevisionAccess()
- RevisionControllerTrait::getOperationLinks in src/
Controller/ RevisionControllerTrait.php - Get the links of the operations for an entity revision.
1 method overrides RevisionControllerTrait::hasRevertRevisionAccess()
- RevisionOverviewController::hasRevertRevisionAccess in src/
Controller/ RevisionOverviewController.php - Determines if the user has permission to revert revisions.
File
- src/
Controller/ RevisionControllerTrait.php, line 37
Class
- RevisionControllerTrait
- Defines a trait for common revision UI functionality.
Namespace
Drupal\entity\ControllerCode
protected abstract function hasRevertRevisionAccess(EntityInterface $entity);