protected function CommentForm::getEditedFieldNames in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/comment/src/CommentForm.php \Drupal\comment\CommentForm::getEditedFieldNames()
Gets the names of all fields edited in the form.
If the entity form customly 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/ comment/ src/ CommentForm.php, line 317 - Contains \Drupal\comment\CommentForm.
Class
- CommentForm
- Base for controller for comment forms.
Namespace
Drupal\commentCode
protected function getEditedFieldNames(FormStateInterface $form_state) {
return array_merge([
'created',
'name',
], parent::getEditedFieldNames($form_state));
}