function BlockForm::actions

Same name and namespace in other branches
  1. 9 core/modules/block/src/BlockForm.php \Drupal\block\BlockForm::actions()
  2. 8.9.x core/modules/block/src/BlockForm.php \Drupal\block\BlockForm::actions()
  3. 10 core/modules/block/src/BlockForm.php \Drupal\block\BlockForm::actions()

Overrides EntityForm::actions

1 call to BlockForm::actions()
BlockEntitySettingTrayForm::actions in core/modules/settings_tray/src/Block/BlockEntitySettingTrayForm.php
Returns an array of supported actions for the current entity form.
1 method overrides BlockForm::actions()
BlockEntitySettingTrayForm::actions in core/modules/settings_tray/src/Block/BlockEntitySettingTrayForm.php
Returns an array of supported actions for the current entity form.

File

core/modules/block/src/BlockForm.php, line 287

Class

BlockForm
Provides form for block instance forms.

Namespace

Drupal\block

Code

protected function actions(array $form, FormStateInterface $form_state) {
    $actions = parent::actions($form, $form_state);
    $actions['submit']['#value'] = $this->t('Save block');
    $actions['delete']['#title'] = $this->t('Remove block');
    return $actions;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.