You are here

protected function StyleBase::getColors in GridStack 8.2

Returns available colors.

3 calls to StyleBase::getColors()
Background::getBackgroundColor in src/Plugin/gridstack/stylizer/Background.php
Returns the background colors grouped by the given key, w/o text colors.
Color::getTextColor in src/Plugin/gridstack/stylizer/Color.php
Returns the text colors grouped by the given key.
StyleBase::getColor in src/Plugin/gridstack/stylizer/StyleBase.php
Checks for valid color excluding black (#000000) by design.

File

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

Class

StyleBase
Provides the base styles.

Namespace

Drupal\gridstack\Plugin\gridstack\stylizer

Code

protected function getColors(array $settings = []) {
  return $this
    ->hasColors($settings) ? $settings['styles']['colors'] : [];
}