protected BlockEntityOffCanvasForm::actions(array $form, FormStateInterface $form_state)
Returns an array of supported actions for the current entity form.
@todo Consider introducing a 'preview' action here, since it is used by many entity types.
Overrides BlockForm::actions
File
- core/modules/outside_in/src/Block/BlockEntityOffCanvasForm.php, line 61
 
Class
- BlockEntityOffCanvasForm
 - Provides form for block instance forms when used in the off-canvas tray.
 
Namespace
Drupal\outside_in\Block
Code
protected function actions(array $form, FormStateInterface $form_state) {
  $actions = parent::actions($form, $form_state);
  $actions['submit']['#value'] = $this->t('Save @block', ['@block' => $this->entity->getPlugin()->getPluginDefinition()['admin_label']]);
  $actions['delete']['#access'] = FALSE;
  return $actions;
}
Please login to continue.