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.
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);