function ResolverRelationshipDelete::actions
Same name in other branches
- 4.0.x src/Form/ResolverRelationshipDelete.php \Drupal\ctools\Form\ResolverRelationshipDelete::actions()
A custom form actions method.
Parameters
array $form: The form array.
\Drupal\Core\Form\FormStateInterface $form_state: The current form state.
$cached_values: The current wizard cached values.
Return value
array Actions to call.
1 call to ResolverRelationshipDelete::actions()
- ResolverRelationshipDelete::buildForm in src/
Form/ ResolverRelationshipDelete.php - Form constructor.
File
-
src/
Form/ ResolverRelationshipDelete.php, line 139
Class
- ResolverRelationshipDelete
- Resolver Relatinoship Delete Form.
Namespace
Drupal\ctools\FormCode
protected function actions(array $form, FormStateInterface $form_state, $cached_values) {
return [
'submit' => [
'#type' => 'submit',
'#value' => $this->getConfirmText(),
'#validate' => [
[
$this,
'validate',
],
],
'#submit' => [
[
$this,
'submitForm',
],
],
],
'cancel' => ConfirmFormHelper::buildCancelLink($this, $this->getRequest()),
];
}