class Alert in Forena Reports 8
Same name and namespace in other branches
- 7.4 AjaxCommand/Alert.php \Drupal\forena\FrxPlugin\AjaxCommand\Alert
Alert
Plugin annotation
@FrxAjaxCommand(
id = "alert"
)
Hierarchy
- class \Drupal\forena\FrxPlugin\AjaxCommand\AjaxCommandBase implements AjaxCommandInterface
- class \Drupal\forena\FrxPlugin\AjaxCommand\Alert
Expanded class hierarchy of Alert
File
- src/
FrxPlugin/ AjaxCommand/ Alert.php, line 19
Namespace
Drupal\forena\FrxPlugin\AjaxCommandView source
class Alert extends AjaxCommandBase {
/**
*
* @param array $settings
* @return AlertCommand
* Ajax Alert Command object.
*
* Settings:
* - text: The text message to use in the alert.
*/
public function commandFromSettings(array $settings) {
$text = $this
->getSetting($settings, 'text');
return new AlertCommand($text);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AjaxCommandBase:: |
protected static | property | ||
AjaxCommandBase:: |
public | function | Get json text. | |
AjaxCommandBase:: |
public | function | ||
AjaxCommandBase:: |
public static | function | Report Replacer. | |
Alert:: |
public | function |
Overrides AjaxCommandInterface:: |