Provides a form element for choosing a color.
Properties:
#default_value: Default value, in a format like #ffffff.
Example usage:
$form['color'] = array(
'#type' => 'color',
'#title' => $this->t('Color'),
'#default_value' => '#ffffff',
);
Plugin annotation
@FormElement("color")
Hierarchy
class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, String