You are here

function colors_get_color_options in Colors 8

Same name and namespace in other branches
  1. 7 colors.module \colors_get_color_options()

Gets all the color options.

Parameters

string $module: The name of the module to invoke the hook with.

Return value

Array containing all the possible colorable features.

File

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

Code

function colors_get_color_options($module = 'colors') {
  return array_keys(\Drupal::service('module_handler')
    ->invoke($module, 'colors_get_color_mapping'));
}