You are here

public function ContentTranslationHandlerInterface::getTranslationAccess in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/content_translation/src/ContentTranslationHandlerInterface.php \Drupal\content_translation\ContentTranslationHandlerInterface::getTranslationAccess()

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.

1 method overrides ContentTranslationHandlerInterface::getTranslationAccess()
ContentTranslationHandler::getTranslationAccess in core/modules/content_translation/src/ContentTranslationHandler.php
Checks if the user can perform the given operation on translations of the wrapped entity.

File

core/modules/content_translation/src/ContentTranslationHandlerInterface.php, line 43
Contains \Drupal\content_translation\ContentTranslationHandlerInterface.

Class

ContentTranslationHandlerInterface
Interface for providing content translation.

Namespace

Drupal\content_translation

Code

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