public function EntityTranslationControllerInterface::entityFormAlter

Performs the needed alterations to the entity form.

Parameters

array $form: The entity form to be altered to provide the translation workflow.

array $form_state: The form state array.

\Drupal\Core\Entity\EntityInterface $entity: The entity being created or edited.

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

File

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

Class

EntityTranslationControllerInterface
Interface for providing entity translation.

Namespace

Drupal\translation_entity

Code

public function entityFormAlter(array &$form, array &$form_state, EntityInterface $entity);