public function EntityMenuLinkCloneForm::buildForm in Menu Link Clone 8.3
Same name and namespace in other branches
- 8 src/Form/EntityMenuLinkCloneForm.php \Drupal\menu_link_clone\Form\EntityMenuLinkCloneForm::buildForm()
- 8.2 src/Form/EntityMenuLinkCloneForm.php \Drupal\menu_link_clone\Form\EntityMenuLinkCloneForm::buildForm()
Return value
array A render form array for a page.
Overrides EntityCloneForm::buildForm
File
- src/
Form/ EntityMenuLinkCloneForm.php, line 73
Class
- EntityMenuLinkCloneForm
- Provides a menu link clone form.
Namespace
Drupal\menu_link_clone\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);
$form['clone_links'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Clone with Links'),
'#required' => FALSE,
'#default_value' => FALSE,
'#weight' => 0,
];
return $form;
}