public static function ProfileFormWidget::removeTranslatabilityClue in Profile 8
After-build callback for removing the translatability clue from the widget.
See also
ContentTranslationHandler::addTranslatabilityClue()
File
- src/
Plugin/ Field/ FieldWidget/ ProfileFormWidget.php, line 241
Class
- ProfileFormWidget
- Plugin implementation of the 'profile_form' widget.
Namespace
Drupal\profile\Plugin\Field\FieldWidgetCode
public static function removeTranslatabilityClue(array $element, FormStateInterface $form_state) {
$element['#title'] = $element['#field_title'];
return $element;
}