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