Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContentTranslationHandlerInterface.php

function ContentTranslationHandlerInterface::getTranslationAccess

Checks that the user can perform the operation on the entity translation.

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 that the user can perform the operation on the entity translation.

File

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

Class

ContentTranslationHandlerInterface
Interface for providing content translation.

Namespace

Drupal\content_translation

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal