public function ProfileTranslationController::entityFormAlter

Overrides EntityTranslationController::entityFormAlter().

Overrides EntityTranslationController::entityFormAlter

File

drupal/core/modules/user/lib/Drupal/user/ProfileTranslationController.php, line 21
Definition of Drupal\user\ProfileTranslationController.

Class

ProfileTranslationController
Defines the translation controller class for terms.

Namespace

Drupal\user

Code

public function entityFormAlter(array &$form, array &$form_state, EntityInterface $entity) {
  parent::entityFormAlter($form, $form_state, $entity);
  $form['actions']['submit']['#submit'][] = array(
    $this,
    'entityFormSave',
  );
}