You are here

abstract protected function RevisionControllerTrait::hasDeleteRevisionAccess in Entity API 8

Same name and namespace in other branches
  1. 8.0 src/Controller/RevisionControllerTrait.php \Drupal\entity\Controller\RevisionControllerTrait::hasDeleteRevisionAccess()

Determines if the user has permission to delete revisions.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to check delete revision access for.

Return value

bool TRUE if the user has delete revision access.

1 call to RevisionControllerTrait::hasDeleteRevisionAccess()
RevisionControllerTrait::getOperationLinks in src/Controller/RevisionControllerTrait.php
Get the links of the operations for an entity revision.
1 method overrides RevisionControllerTrait::hasDeleteRevisionAccess()
RevisionOverviewController::hasDeleteRevisionAccess in src/Controller/RevisionOverviewController.php
Determines if the user has permission to delete revisions.

File

src/Controller/RevisionControllerTrait.php, line 48

Class

RevisionControllerTrait
Defines a trait for common revision UI functionality.

Namespace

Drupal\entity\Controller

Code

protected abstract function hasDeleteRevisionAccess(EntityInterface $entity);