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