Alert.php in Forena Reports 7.4
Namespace
Drupal\forena\FrxPlugin\AjaxCommandFile
AjaxCommand/Alert.phpView source
<?php
/**
* Created by PhpStorm.
* User: metzlerd
* Date: 4/17/16
* Time: 4:19 PM
*/
namespace Drupal\forena\FrxPlugin\AjaxCommand;
/**
* Alert
*
* @FrxAjaxCommand(
* id = "alert"
* )
*/
class Alert extends AjaxCommandBase {
/**
*
* @param array $settings
*
* Settings:
* - text: The text message to use in the alert.
*/
public function commandFromSettings(array $settings) {
$text = $this
->getSetting($settings, 'text');
return ajax_command_alert($text);
}
}