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