OpenModalDialog.php in Forena Reports 8
File
src/FrxPlugin/AjaxCommand/OpenModalDialog.php
View source
<?php
namespace Drupal\forena\FrxPlugin\AjaxCommand;
use Drupal\Core\Ajax\OpenDialogCommand;
class OpenModalDialog extends AjaxCommandBase {
public function commandFromSettings(array $settings) {
$selector = $this
->getSetting($settings, 'selector');
$title = $this
->getSetting($settings, 'title');
$content = $this
->getSetting($settings, 'text');
return new OpenDialogCommand($selector, $title, $content, $settings);
}
}