/** * {@inheritdoc} */ protected function actions(array $form, FormStateInterface $form_state) { $actions = parent::actions($form, $form_state); // Change the submit button value. $actions['submit']['#value'] = $this->t('Update @type', array('@type' => $this->entity->label())); return $actions; }
/** * {@inheritdoc} */ protected function actions(array $form, FormStateInterface $form_state) { $actions = parent::actions($form, $form_state); // Change the submit button value. $actions['submit']['#value'] = $this->t('Create entity type'); return $actions; }