public function FormModeManagerLinksForm::buildForm in Form mode manager 8.2
Same name and namespace in other branches
- 8 src/Form/FormModeManagerLinksForm.php \Drupal\form_mode_manager\Form\FormModeManagerLinksForm::buildForm()
Form constructor.
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
array The form structure.
Overrides FormModeManagerFormBase::buildForm
File
- src/
Form/ FormModeManagerLinksForm.php, line 54
Class
- FormModeManagerLinksForm
- Configure Form Mode Manager links.
Namespace
Drupal\form_mode_manager\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);
if (isset($form['empty'])) {
return $form;
}
$form['local_taks'] = [
'#type' => 'details',
'#title' => $this
->t('Local Tasks'),
'#open' => TRUE,
];
$form['local_taks']['vertical_tabs'] = [
'#type' => 'vertical_tabs',
];
$this
->buildFormModeForm($form);
return $form;
}