function BlockForm::actions

Same name 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. 11.x 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
1 method overrides BlockForm::actions()
BlockEntitySettingTrayForm::actions in core/modules/settings_tray/src/Block/BlockEntitySettingTrayForm.php

File

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

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.