public function Alert::commandFromSettings in Forena Reports 8
Same name and namespace in other branches
- 7.4 AjaxCommand/Alert.php \Drupal\forena\FrxPlugin\AjaxCommand\Alert::commandFromSettings()
Parameters
array $settings:
Return value
AlertCommand Ajax Alert Command object.
- text: The text message to use in the alert.
Overrides AjaxCommandInterface::commandFromSettings
File
- src/
FrxPlugin/ AjaxCommand/ Alert.php, line 30
Class
- Alert
- Alert
Namespace
Drupal\forena\FrxPlugin\AjaxCommandCode
public function commandFromSettings(array $settings) {
$text = $this
->getSetting($settings, 'text');
return new AlertCommand($text);
}