public function EntityTranslationControllerInterface::getAccess

Checks if the user can perform the given operation on the wrapped entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity access should be checked for.

string $op: The operation to be performed. Possible values are:

  • "view"
  • "update"
  • "delete"
  • "create"

Return value

TRUE if the user is allowed to perform the given operation, FALSE otherwise.

1 method overrides EntityTranslationControllerInterface::getAccess()
EntityTranslationController::getAccess in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationController.php
Implements EntityTranslationControllerInterface::getAccess().

File

drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationControllerInterface.php, line 132
Definition of Drupal\translation_entity\EntityTranslationControllerInterface.

Class

EntityTranslationControllerInterface
Interface for providing entity translation.

Namespace

Drupal\translation_entity

Code

public function getAccess(EntityInterface $entity, $op);