You are here

Alert.php in Forena Reports 7.4

File

AjaxCommand/Alert.php
View 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);
  }

}

Classes

Namesort descending Description
Alert Alert