protected function RequiredContextDelete::actions in Chaos Tool Suite (ctools) 8.3
Provides the action buttons for submitting this form.
1 call to RequiredContextDelete::actions()
- RequiredContextDelete::buildForm in src/
Form/ RequiredContextDelete.php - Form constructor.
File
- src/
Form/ RequiredContextDelete.php, line 122
Class
- RequiredContextDelete
- Base class for adding a required contexts step to your wizard.
Namespace
Drupal\ctools\FormCode
protected function actions(array $form, FormStateInterface $form_state) {
return [
'submit' => [
'#type' => 'submit',
'#value' => $this
->getConfirmText(),
'#validate' => [
[
$this,
'validate',
],
],
'#submit' => [
[
$this,
'submitForm',
],
],
],
'cancel' => ConfirmFormHelper::buildCancelLink($this, $this
->getRequest()),
];
}