protected function RLayoutFormController::actions in Layout 8
Overrides Drupal\Core\Entity\EntityFormController::actions().
File
- lib/
Drupal/ rlayout/ RLayoutFormController.php, line 137 - Definition of Drupal\rlayout\RLayoutFormController.
Class
- RLayoutFormController
- Form controller for the layout edit/add forms.
Namespace
Drupal\rlayoutCode
protected function actions(array $form, array &$form_state) {
// Only includes a Save action for the entity, no direct Delete button.
return array(
'submit' => array(
'#value' => t('Save'),
'#validate' => array(
array(
$this,
'validate',
),
),
'#submit' => array(
array(
$this,
'submit',
),
array(
$this,
'save',
),
),
),
);
}