ContentTranslationHandlerInterface::getTranslationAccess

public ContentTranslationHandlerInterface::getTranslationAccess(EntityInterface $entity, $op)

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

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity whose translation has to be accessed.

$op: The operation to be performed on the translation. Possible values are:

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

Return value

\Drupal\Core\Access\AccessResultInterface The access result.

File

core/modules/content_translation/src/ContentTranslationHandlerInterface.php, line 38

Class

ContentTranslationHandlerInterface
Interface for providing content translation.

Namespace

Drupal\content_translation

Code

public function getTranslationAccess(EntityInterface $entity, $op);
doc_Drupal
2016-10-29 08:58:17
Comments
Leave a Comment

Please login to continue.