TermTranslationHandler::entityFormAlter

public TermTranslationHandler::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 ContentTranslationHandler::entityFormAlter

File

core/modules/taxonomy/src/TermTranslationHandler.php, line 17

Class

TermTranslationHandler
Defines the translation handler for terms.

Namespace

Drupal\taxonomy

Code

public function entityFormAlter(array &$form, FormStateInterface $form_state, EntityInterface $entity) {
  parent::entityFormAlter($form, $form_state, $entity);
  $form['actions']['submit']['#submit'][] = array($this, 'entityFormSave');
}
doc_Drupal
2016-10-29 09:47:30
Comments
Leave a Comment

Please login to continue.