You are here

protected function EntityformTypeFormController::actions in Entityform 8.2

File

lib/Drupal/entityform/EntityformTypeFormController.php, line 95
Contains \Drupal\entityform\EntityformTypeFormController.

Class

EntityformTypeFormController
Form controller for entityform type forms.

Namespace

Drupal\entityform

Code

protected function actions(array $form, array &$form_state) {
  $actions = parent::actions($form, $form_state);
  $actions['submit']['#value'] = t('Save entityform type');
  $actions['delete']['#value'] = t('Delete entityform type');
  $actions['delete']['#access'] = $this->entity
    ->access('delete');
  return $actions;
}