You are here

function colors_load_colorpicker in Colors 8

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

Load the color picker.

Return value

array

1 call to colors_load_colorpicker()
ColorsSettingsForm::buildForm in src/Form/ColorsSettingsForm.php
Form constructor.

File

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

Code

function colors_load_colorpicker() {
  return [
    'color_picker' => [
      '#prefix' => '<div id="colors-colorpicker">',
      '#suffix' => '</div>',
    ],
  ];
}