protected function FieldableEdgeEntityForm::getEditedFieldNames in Apigee Edge 8
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.
@todo Add missing return type-hint in 2.x.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
string[] An array of field names.
1 call to FieldableEdgeEntityForm::getEditedFieldNames()
- FieldableEdgeEntityForm::validateForm in src/
Entity/ Form/ FieldableEdgeEntityForm.php - TODO Add missing return type-hint in 2.x.
File
- src/
Entity/ Form/ FieldableEdgeEntityForm.php, line 125
Class
- FieldableEdgeEntityForm
- Base entity form for fieldable Apigee Edge entity types.
Namespace
Drupal\apigee_edge\Entity\FormCode
protected function getEditedFieldNames(FormStateInterface $form_state) {
return array_keys($this
->getFormDisplay($form_state)
->getComponents());
}