You are here

class Html in Forena Reports 8

Same name in this branch
  1. 8 src/FrxPlugin/Document/HTML.php \Drupal\forena\FrxPlugin\Document\HTML
  2. 8 src/FrxPlugin/AjaxCommand/Html.php \Drupal\forena\FrxPlugin\AjaxCommand\Html
Same name and namespace in other branches
  1. 7.4 AjaxCommand/Html.php \Drupal\forena\FrxPlugin\AjaxCommand\Html

Html command

Plugin annotation


@FrxAjaxCommand(
  id = "html"
)

Hierarchy

Expanded class hierarchy of Html

File

src/FrxPlugin/AjaxCommand/Html.php, line 20

Namespace

Drupal\forena\FrxPlugin\AjaxCommand
View source
class Html extends AjaxCommandBase {

  /**
   * JQuery Html Command
   *
   * Settings:
   *   - selector: JQuery selector to use for Html.
   *   - text: HTML to use to replace
   *
   * @param array $settings
   *   Settings for command
   * @return \Drupal\Core\Ajax\HtmlCommand
   */
  public function commandFromSettings(array $settings) {
    $text = $this
      ->getSetting($settings, 'text');
    $selector = $this
      ->getSetting($settings, 'selector');
    return new HtmlCommand($selector, $text, $settings);
  }

}

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.
Html::commandFromSettings public function JQuery Html Command Overrides AjaxCommandInterface::commandFromSettings