public function FormModeManagerDisplayEditForm::updateDisplayModes in Form mode manager 8
Same name and namespace in other branches
- 8.2 src/Form/FormModeManagerDisplayEditForm.php \Drupal\form_mode_manager\Form\FormModeManagerDisplayEditForm::updateDisplayModes()
Determine whenever a formMode(s) has added/deleted onto entityTypes.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
bool True if this entityFormDisplay do rebuild routes.
1 call to FormModeManagerDisplayEditForm::updateDisplayModes()
- FormModeManagerDisplayEditForm::formModesUpdated in src/
Form/ FormModeManagerDisplayEditForm.php - Determine whenever a formMode(s) has added/deleted onto entityTypes.
File
- src/
Form/ FormModeManagerDisplayEditForm.php, line 137
Class
- FormModeManagerDisplayEditForm
- Form Mode Manager enhancements for edit form of the EntityFormDisplay.
Namespace
Drupal\form_mode_manager\FormCode
public function updateDisplayModes(array $form, FormStateInterface $form_state) {
return !empty(array_diff_assoc($this
->getDefaultModes($form), $this
->getSubmittedModes($form_state)));
}