Commit 30fcc3ca authored by catch's avatar catch

Issue #2370115 by Upchuk, nafsinvk, jibran: Clicking 'Add to shortcuts' adds...

Issue #2370115 by Upchuk, nafsinvk, jibran: Clicking 'Add to shortcuts' adds shortcut multiple times

(cherry picked from commit edfd5bbe)
parent bd32e2e3
...@@ -19,6 +19,16 @@ class ShortcutForm extends ContentEntityForm { ...@@ -19,6 +19,16 @@ class ShortcutForm extends ContentEntityForm {
*/ */
protected $entity; 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} * {@inheritdoc}
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment