You are here

protected function StyleBase::cssRule in GridStack 8.2

Returns the CSS rule with a selector and sub selector if available.

1 call to StyleBase::cssRule()
StyleBase::parseStyles in src/Plugin/gridstack/stylizer/StyleBase.php
Builds inline styles if so required with multiple instances on a page.

File

src/Plugin/gridstack/stylizer/StyleBase.php, line 163

Class

StyleBase
Provides the base styles.

Namespace

Drupal\gridstack\Plugin\gridstack\stylizer

Code

protected function cssRule($selector, $rule, $stringify = FALSE) {
  return $stringify ? $selector . '{' . $rule . '}' : [
    $selector => $rule,
  ];
}