You are here

public function Alert::commandFromSettings in Forena Reports 7.4

Same name and namespace in other branches
  1. 8 src/FrxPlugin/AjaxCommand/Alert.php \Drupal\forena\FrxPlugin\AjaxCommand\Alert::commandFromSettings()

Parameters

array $settings:

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\AjaxCommand

Code

public function commandFromSettings(array $settings) {
  $text = $this
    ->getSetting($settings, 'text');
  return ajax_command_alert($text);
}