function ShortcutForm::form
Same name in other branches
- 9 core/modules/shortcut/src/ShortcutForm.php \Drupal\shortcut\ShortcutForm::form()
- 10 core/modules/shortcut/src/ShortcutForm.php \Drupal\shortcut\ShortcutForm::form()
- 11.x core/modules/shortcut/src/ShortcutForm.php \Drupal\shortcut\ShortcutForm::form()
Overrides ContentEntityForm::form
File
-
core/
modules/ shortcut/ src/ ShortcutForm.php, line 26
Class
- ShortcutForm
- Form handler for the shortcut entity forms.
Namespace
Drupal\shortcutCode
public function form(array $form, FormStateInterface $form_state) {
$form = parent::form($form, $form_state);
$form['#attached']['library'][] = 'core/drupal.form';
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.