You are here

class Alert in Forena Reports 7.4

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

Alert

Plugin annotation


@FrxAjaxCommand(
  id = "alert"
)

Hierarchy

Expanded class hierarchy of Alert

1 string reference to 'Alert'
Frx::getAjaxPlugin in ./Frx.inc

File

AjaxCommand/Alert.php, line 18

Namespace

Drupal\forena\FrxPlugin\AjaxCommand
View source
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);
  }

}

Members