You are here

class Alert in Forena Reports 8

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

Alert

Plugin annotation


@FrxAjaxCommand(
  id = "alert"
)

Hierarchy

Expanded class hierarchy of Alert

File

src/FrxPlugin/AjaxCommand/Alert.php, line 19

Namespace

Drupal\forena\FrxPlugin\AjaxCommand
View 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

Namesort descending Modifiers Type Description Overrides
AjaxCommandBase::$replacer protected static property
AjaxCommandBase::getJSONText public function Get json text.
AjaxCommandBase::getSetting public function
AjaxCommandBase::replacer public static function Report Replacer.
Alert::commandFromSettings public function Overrides AjaxCommandInterface::commandFromSettings