Commit 5e1d693e authored by icurk's avatar icurk Committed by boshtian

Issue #2879663 by icurk, jzavrl: Contextual link for removing block

parent 10ffa5da
context_block_config:
title: 'Configure block'
route_name: 'context.reaction.blocks.block_edit'
group: 'context_block'
\ No newline at end of file
group: 'context_block'
context_block_delete:
title: 'Remove block from context'
route_name: 'context.reaction.blocks.block_delete'
group: 'context_block'
......@@ -103,13 +103,12 @@ class BlockDeleteForm extends ConfirmFormBase {
// button very well.
if ($this->getRequest()->isXmlHttpRequest()) {
unset($form['actions']['cancel']);
// Submit the form with AJAX if possible.
$form['actions']['submit']['#ajax'] = [
'callback' => '::submitFormAjax'
];
}
// Submit the form with AJAX if possible.
$form['actions']['submit']['#ajax'] = [
'callback' => '::submitFormAjax'
];
return $form;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment