ContentTranslationManageAccessCheck::$languageManager

The language manager. Type: \Drupal\Core\Language\LanguageManagerInterface File core/modules/content_translation/src/Access/ContentTranslationManageAccessCheck.php, line 31 Class ContentTranslationManageAccessCheck Access check for entity translation CRUD operation. Namespace Drupal\content_translation\Access Code protected $languageManager;

ContentTranslationManageAccessCheck::$entityManager

The entity type manager. Type: \Drupal\Core\Entity\EntityManagerInterface File core/modules/content_translation/src/Access/ContentTranslationManageAccessCheck.php, line 24 Class ContentTranslationManageAccessCheck Access check for entity translation CRUD operation. Namespace Drupal\content_translation\Access Code protected $entityManager;

ContentTranslationManageAccessCheck

Access check for entity translation CRUD operation. Hierarchy class \Drupal\content_translation\Access\ContentTranslationManageAccessCheck implements AccessInterface File core/modules/content_translation/src/Access/ContentTranslationManageAccessCheck.php, line 17 Namespace Drupal\content_translation\Access Members Name Modifiers Type Description ContentTranslationManageAccessCheck::$entityManager protected property The entity type manager. ContentTranslationManageAcces

ContentTranslationHandlerInterface::retranslate

public ContentTranslationHandlerInterface::retranslate(EntityInterface $entity, $langcode = NULL) Marks translations as outdated. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity being translated. string $langcode: (optional) The language code of the updated language: all the other translations will be marked as outdated. Defaults to the entity language. File core/modules/content_translation/src/ContentTranslationHandlerInterface.php, line 60 Class ContentTranslationHandl

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_tra

ContentTranslationHandlerInterface::getSourceLangcode

public ContentTranslationHandlerInterface::getSourceLangcode(FormStateInterface $form_state) Retrieves the source language for the translation being created. Parameters \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value string The source language code. File core/modules/content_translation/src/ContentTranslationHandlerInterface.php, line 49 Class ContentTranslationHandlerInterface Interface for providing content translation. Namespace Drupal\

ContentTranslationHandlerInterface::getFieldDefinitions

public ContentTranslationHandlerInterface::getFieldDefinitions() Returns a set of field definitions to be used to store metadata items. Return value \Drupal\Core\Field\FieldDefinitionInterface[] File core/modules/content_translation/src/ContentTranslationHandlerInterface.php, line 21 Class ContentTranslationHandlerInterface Interface for providing content translation. Namespace Drupal\content_translation Code public function getFieldDefinitions();

ContentTranslationHandlerInterface::entityFormAlter

public ContentTranslationHandlerInterface::entityFormAlter(array &$form, FormStateInterface $form_state, EntityInterface $entity) Performs the needed alterations to the entity form. Parameters array $form: The entity form to be altered to provide the translation workflow. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. \Drupal\Core\Entity\EntityInterface $entity: The entity being created or edited. File core/modules/content_translation/src/ContentTranslatio

ContentTranslationHandlerInterface

Interface for providing content translation. Defines a set of methods to allow any entity to be processed by the entity translation UI. Hierarchy interface \Drupal\content_translation\ContentTranslationHandlerInterface File core/modules/content_translation/src/ContentTranslationHandlerInterface.php, line 14 Namespace Drupal\content_translation Members Name Modifiers Type Description ContentTranslationHandlerInterface::entityFormAlter public function Performs the needed a

ContentTranslationHandler::__construct

public ContentTranslationHandler::__construct(EntityTypeInterface $entity_type, LanguageManagerInterface $language_manager, ContentTranslationManagerInterface $manager, EntityManagerInterface $entity_manager, AccountInterface $current_user) Initializes an instance of the content translation controller. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The info array of the given entity type. \Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.