You are here

public function Alert::commandFromSettings in Forena Reports 8

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

Parameters

array $settings:

Return value

AlertCommand Ajax Alert Command object.

Settings:

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

Code

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