/** * {@inheritdoc} */ protected function actions(array $form, FormStateInterface $form_state) { $actions = parent::actions($form, $form_state); $actions['submit']['#value'] = t('Save format'); unset($actions['delete']); return $actions; }
/** * {@inheritdoc} */ public function submit(array $form, FormStateInterface $form_state) { parent::submit($form, $form_state); drupal_set_message(t('Custom date format updated.')); }