public function Settings::ajaxCallback in CKEditor Bootstrap Grid 2.0.x
Callback for both ajax-enabled buttons.
Selects and returns the fieldset with the names in it.
File
- src/
Form/ Settings.php, line 210
Class
- Settings
- Configuration for CKEditor BS Grid.
Namespace
Drupal\ckeditor_bs_grid\FormCode
public function ajaxCallback(array &$form, FormStateInterface $form_state) {
$trigger = $this
->getTriggerKey($form_state);
$form[$trigger['break']]['columns'][$trigger['col']]['layouts']['#open'] = TRUE;
return $form[$trigger['break']]['columns'][$trigger['col']]['layouts'];
}