public function Html::commandFromSettings in Forena Reports 8
Same name and namespace in other branches
- 7.4 AjaxCommand/Html.php \Drupal\forena\FrxPlugin\AjaxCommand\Html::commandFromSettings()
JQuery Html Command
Settings:
- selector: JQuery selector to use for Html.
- text: HTML to use to replace
Parameters
array $settings: Settings for command
Return value
Overrides AjaxCommandInterface::commandFromSettings
File
- src/
FrxPlugin/ AjaxCommand/ Html.php, line 33
Class
- Html
- Html command
Namespace
Drupal\forena\FrxPlugin\AjaxCommandCode
public function commandFromSettings(array $settings) {
$text = $this
->getSetting($settings, 'text');
$selector = $this
->getSetting($settings, 'selector');
return new HtmlCommand($selector, $text, $settings);
}