function BlockForm::actions
Same name in other branches
- 9 core/modules/block/src/BlockForm.php \Drupal\block\BlockForm::actions()
- 8.9.x core/modules/block/src/BlockForm.php \Drupal\block\BlockForm::actions()
- 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\blockCode
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.