protected function DeleteStyles::buildCancelLink in Block Style Plugins 8.2
Build a cancel button for the confirm form.
1 call to DeleteStyles::buildCancelLink()
- DeleteStyles::buildForm in src/
Form/ DeleteStyles.php - Form constructor.
File
- src/
Form/ DeleteStyles.php, line 155
Class
- DeleteStyles
- Provides a form to delete a block style.
Namespace
Drupal\block_style_plugins\FormCode
protected function buildCancelLink() {
return [
'#type' => 'button',
'#value' => $this
->getCancelText(),
'#ajax' => [
'callback' => '::ajaxCancel',
],
];
}