function ContentTranslationHandlerInterface::entityFormAlter
Same name in other branches
- 9 core/modules/content_translation/src/ContentTranslationHandlerInterface.php \Drupal\content_translation\ContentTranslationHandlerInterface::entityFormAlter()
- 8.9.x core/modules/content_translation/src/ContentTranslationHandlerInterface.php \Drupal\content_translation\ContentTranslationHandlerInterface::entityFormAlter()
- 11.x core/modules/content_translation/src/ContentTranslationHandlerInterface.php \Drupal\content_translation\ContentTranslationHandlerInterface::entityFormAlter()
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.
1 method overrides ContentTranslationHandlerInterface::entityFormAlter()
- ContentTranslationHandler::entityFormAlter in core/
modules/ content_translation/ src/ ContentTranslationHandler.php - Performs the needed alterations to the entity form.
File
-
core/
modules/ content_translation/ src/ ContentTranslationHandlerInterface.php, line 71
Class
- ContentTranslationHandlerInterface
- Interface for providing content translation.
Namespace
Drupal\content_translationCode
public function entityFormAlter(array &$form, FormStateInterface $form_state, EntityInterface $entity);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.