public function CloseDialog::commandFromSettings in Forena Reports 8
Close a dialoge.
Parameters
array $settings: Settings for command
Return value
CloseDialogCommand Close dialog ajax command object.
Overrides AjaxCommandInterface::commandFromSettings
File
- src/
FrxPlugin/ AjaxCommand/ CloseDialog.php, line 28
Class
- CloseDialog
- Class CloseDialog
Namespace
Drupal\forena\FrxPlugin\AjaxCommandCode
public function commandFromSettings(array $settings) {
$selector = $this
->getSetting($settings, 'selector');
$persist = $this
->getSetting($settings, 'persist') !== TRUE;
return new CloseDialogCommand($selector, $persist);
}