ContentTranslationHandler::entityFormTitle

protected ContentTranslationHandler::entityFormTitle(EntityInterface $entity) Returns the title to be used for the entity form page. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity whose form is being altered. Return value string|null The label of the entity, or NULL if there is no label defined. File core/modules/content_translation/src/ContentTranslationHandler.php, line 703 Class ContentTranslationHandler Base class for content translation handlers. Namespace Dru

ContentTranslationHandler::entityFormSubmit

ContentTranslationHandler::entityFormSubmit($form, FormStateInterface $form_state) Form submission handler for ContentTranslationHandler::entityFormAlter(). Updates metadata fields, which should be updated only after the validation has run and before the entity is saved. File core/modules/content_translation/src/ContentTranslationHandler.php, line 621 Class ContentTranslationHandler Base class for content translation handlers. Namespace Drupal\content_translation Code function entityFo

ContentTranslationHandler::entityFormSourceChange

public ContentTranslationHandler::entityFormSourceChange($form, FormStateInterface $form_state) Form submission handler for ContentTranslationHandler::entityFormAlter(). Takes care of the source language change. File core/modules/content_translation/src/ContentTranslationHandler.php, line 644 Class ContentTranslationHandler Base class for content translation handlers. Namespace Drupal\content_translation Code public function entityFormSourceChange($form, FormStateInterface $form_state)

ContentTranslationHandler::entityFormSharedElements

public ContentTranslationHandler::entityFormSharedElements($element, FormStateInterface $form_state, $form) Process callback: determines which elements get clue in the form. See also \Drupal\content_translation\ContentTranslationHandler::entityFormAlter() File core/modules/content_translation/src/ContentTranslationHandler.php, line 491 Class ContentTranslationHandler Base class for content translation handlers. Namespace Drupal\content_translation Code public function entityFormShared

ContentTranslationHandler::entityFormEntityBuild

public ContentTranslationHandler::entityFormEntityBuild($entity_type, EntityInterface $entity, array $form, FormStateInterface $form_state) Entity builder method. Parameters string $entity_type: The type of the entity. \Drupal\Core\Entity\EntityInterface $entity: The entity whose form is being built. See also \Drupal\content_translation\ContentTranslationHandler::entityFormAlter() File core/modules/content_translation/src/ContentTranslationHandler.php, line 575 Class ContentTranslationHan

ContentTranslationHandler::entityFormDeleteTranslation

ContentTranslationHandler::entityFormDeleteTranslation($form, FormStateInterface $form_state) Form submission handler for ContentTranslationHandler::entityFormAlter(). Takes care of content translation deletion. File core/modules/content_translation/src/ContentTranslationHandler.php, line 677 Class ContentTranslationHandler Base class for content translation handlers. Namespace Drupal\content_translation Code function entityFormDeleteTranslation($form, FormStateInterface $form_state) {

ContentTranslationHandler::entityFormDelete

ContentTranslationHandler::entityFormDelete($form, FormStateInterface $form_state) Form submission handler for ContentTranslationHandler::entityFormAlter(). Takes care of entity deletion. File core/modules/content_translation/src/ContentTranslationHandler.php, line 664 Class ContentTranslationHandler Base class for content translation handlers. Namespace Drupal\content_translation Code function entityFormDelete($form, FormStateInterface $form_state) { $form_object = $form_state->g

ContentTranslationHandler::entityFormAlter

public ContentTranslationHandler::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. Overrides ContentTranslationHandlerInterface::entityFormAlter File c

ContentTranslationHandler::createInstance

public static ContentTranslationHandler::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component

ContentTranslationHandler::checkFieldStorageDefinitionTranslatability

protected ContentTranslationHandler::checkFieldStorageDefinitionTranslatability($field_name) Checks the field storage definition for translatability support. Checks whether the given field is defined in the field storage definitions and if its definition specifies it as translatable. Parameters string $field_name: The name of the field. Return value bool TRUE if translatable field storage definition exists, FALSE otherwise. File core/modules/content_translation/src/ContentTranslationHandler.p