You are here

class Css in Forena Reports 8

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

Class Css

Plugin annotation


@FrxAjaxCommand(
  id = "css"
)

Hierarchy

Expanded class hierarchy of Css

File

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

Namespace

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

  /**
   * CSS JQuery Command
   * @param array $settings
   * @return \Drupal\Core\Ajax\CssCommand
   */
  public function commandFromSettings(array $settings) {
    $selector = $this
      ->getSetting($settings, 'selector');
    $css = $this
      ->getJSONText($settings, 'css');
    return new CssCommand($selector, $css);
  }

}

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