Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / shortcut / src / ShortcutForm.php
index 26a52629b2f7536bcfc66dd8ba73aef06c0566d0..f41ba253157afb6346195fdb5f12fae1da8b6578 100644 (file)
@@ -19,6 +19,16 @@ class ShortcutForm extends ContentEntityForm {
    */
   protected $entity;
 
+  /**
+   * {@inheritdoc}
+   */
+  public function form(array $form, FormStateInterface $form_state) {
+    $form = parent::form($form, $form_state);
+    $form['#attached']['library'][] = 'core/drupal.form';
+
+    return $form;
+  }
+
   /**
    * {@inheritdoc}
    */