You are here

public function Css::commandFromSettings in Forena Reports 8

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

CSS JQuery Command

Parameters

array $settings:

Return value

\Drupal\Core\Ajax\CssCommand

Overrides AjaxCommandInterface::commandFromSettings

File

src/FrxPlugin/AjaxCommand/Css.php, line 27

Class

Css
Class Css

Namespace

Drupal\forena\FrxPlugin\AjaxCommand

Code

public function commandFromSettings(array $settings) {
  $selector = $this
    ->getSetting($settings, 'selector');
  $css = $this
    ->getJSONText($settings, 'css');
  return new CssCommand($selector, $css);
}