You are here

public function Css::commandFromSettings in Forena Reports 7.4

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

CSS JQuery Command

Parameters

array $settings:

Return value

array

Overrides AjaxCommandInterface::commandFromSettings

File

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 ajax_command_css($selector, $css);
}