Fichier
-
src/
Plugin/ Field/ FieldType/ ColorFieldItem.php, line 78
Classe
- ColorFieldItem
- Plugin implementation of the 'color_field' field type.
Namespace
Drupal\color_field\Plugin\Field\FieldTypeCode
public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
$element = array();
$element['opacity'] = array(
'#type' => 'checkbox',
'#title' => t('Record opacity'),
'#default_value' => $this->getSetting('opacity'),
);
return $element;
}