protected function LocalTaskForm::actions

File

translators/tmgmt_local/src/Form/LocalTaskForm.php, line 138

Class

LocalTaskForm
Form controller for the localTask edit forms.

Namespace

Drupal\tmgmt_local\Form

Code

protected function actions(array $form, FormStateInterface $form_state) {
  $actions = parent::actions($form, $form_state);
  $actions['submit']['#value'] = $this
    ->t('Save task');
  $actions['submit']['#access'] = \Drupal::currentUser()
    ->hasPermission('administer tmgmt') || \Drupal::currentUser()
    ->hasPermission('administer translation tasks');
  return $actions;
}