You are here

protected function StyleBase::hasColors in GridStack 8.2

Checks if it has colors.

1 call to StyleBase::hasColors()
StyleBase::getColors in src/Plugin/gridstack/stylizer/StyleBase.php
Returns available colors.

File

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

Class

StyleBase
Provides the base styles.

Namespace

Drupal\gridstack\Plugin\gridstack\stylizer

Code

protected function hasColors(array $settings = []) {
  return isset($settings['styles']['colors']) && array_filter($settings['styles']['colors']);
}