function ProfileTranslationHandler::entityFormAlter
Overrides ContentTranslationHandler::entityFormAlter
File
-
core/
modules/ user/ src/ ProfileTranslationHandler.php, line 33
Class
- ProfileTranslationHandler
- Defines the translation handler for users.
Namespace
Drupal\userCode
public function entityFormAlter(array &$form, FormStateInterface $form_state, EntityInterface $entity) {
parent::entityFormAlter($form, $form_state, $entity);
$form['actions']['submit']['#submit'][] = [
$this,
'entityFormSave',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.