You are here

function colors_get_palette in Colors 8

Retrieves the color palette for a particular theme.

4 calls to colors_get_palette()
ColorsSettingsForm::getDefaultFormElements in src/Form/ColorsSettingsForm.php
Get form element for default settings.
ColorsSettingsForm::getFormElements in src/Form/ColorsSettingsForm.php
Get settings form elements.
colors_colors_palette in ./colors.module
Implements hook_colors_palette().
colors_create_css in ./colors.module
Retrieves or generates a CSS with a given module's selector.

File

./colors.module, line 31
Controls assigning colors to entities.

Code

function colors_get_palette($config) {
  return $config
    ->get('palette');
}