public function EntityTranslationControllerInterface::getTranslationAccess

Checks if a user is allowed to edit the given translation.

Parameters

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

string $langcode: The language code identifying the translation to be accessed.

Return value

boolean TRUE if the operation may be performed, FALSE otherwise.

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

File

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

Class

EntityTranslationControllerInterface
Interface for providing entity translation.

Namespace

Drupal\translation_entity

Code

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