You are here

public function Html::commandFromSettings in Forena Reports 7.4

Same name and namespace in other branches
  1. 8 src/FrxPlugin/AjaxCommand/Html.php \Drupal\forena\FrxPlugin\AjaxCommand\Html::commandFromSettings()

JQuery Html Command

Settings:

  • selector: JQuery selector to use for Html.
  • text: HTML to use to replace

Parameters

array $settings: Settings for command

Return value

array

Overrides AjaxCommandInterface::commandFromSettings

File

AjaxCommand/Html.php, line 32

Class

Html
Html command

Namespace

Drupal\forena\FrxPlugin\AjaxCommand

Code

public function commandFromSettings(array $settings) {
  $text = $this
    ->getSetting($settings, 'text');
  $selector = $this
    ->getSetting($settings, 'selector');
  return ajax_command_html($selector, $text, $settings);
}