*/
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}
*/
else {
$message = $this->t('Added a shortcut for %title.', ['%title' => $view_link]);
}
- drupal_set_message($message);
+ $this->messenger()->addStatus($message);
$form_state->setRedirect(
'entity.shortcut_set.customize_form',