function TermForm::getEditedFieldNames
Same name and namespace in other branches
- 9 core/modules/taxonomy/src/TermForm.php \Drupal\taxonomy\TermForm::getEditedFieldNames()
- 8.9.x core/modules/taxonomy/src/TermForm.php \Drupal\taxonomy\TermForm::getEditedFieldNames()
- 11.x core/modules/taxonomy/src/TermForm.php \Drupal\taxonomy\TermForm::getEditedFieldNames()
Gets the names of all fields edited in the form.
If a custom entity form adds some fields to the form (i.e. without using the form display), it needs to add its fields here and override flagViolations() for displaying the violations.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
string[] An array of field names.
Overrides ContentEntityForm::getEditedFieldNames
File
-
core/
modules/ taxonomy/ src/ TermForm.php, line 169
Class
- TermForm
- Base for handler for taxonomy term edit forms.
Namespace
Drupal\taxonomyCode
protected function getEditedFieldNames(FormStateInterface $form_state) {
return array_merge([
'parent',
'weight',
], parent::getEditedFieldNames($form_state));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.