function LayoutForm::enableEditMode
Same name and namespace in other branches
- 11.x core/modules/navigation/src/Form/LayoutForm.php \Drupal\navigation\Form\LayoutForm::enableEditMode()
Handles switching the configuration type selector.
Return value
array An associative array containing the structure of the form.
File
-
core/
modules/ navigation/ src/ Form/ LayoutForm.php, line 69
Class
- LayoutForm
- Defines a form for configuring navigation blocks.
Namespace
Drupal\navigation\FormCode
public function enableEditMode($form, FormStateInterface $form_state) : array {
if ($form_state::hasAnyErrors()) {
return $form;
}
$this->handleFormElementsVisibility($form);
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.