function 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\Form

Code

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.