public function Style::getStyles in GridStack 8.2
Parses the given color strings keyed by index or .box__content or selector.
File
- src/
Plugin/ gridstack/ stylizer/ Style.php, line 18
Class
- Style
- Provides the common styles.
Namespace
Drupal\gridstack\Plugin\gridstack\stylizerCode
public function getStyles(array $settings) {
// Provides background colors keyed by .box__content, or top selector.
$backgrounds = $this
->getBackgroundColor($settings, TRUE);
// Provides text colors keyed by their own selectors.
$colors = $this
->getTextColor($settings);
return array_merge($backgrounds, $colors);
}