Same name and namespace in other branches
- 3.0.x src/Plugin/Field/FieldType/ColorFieldType.php \Drupal\color_field\Plugin\Field\FieldType\ColorFieldType::fieldSettingsForm()
Fichier
-
src/
Plugin/ Field/ FieldType/ ColorFieldType.php, line 77
Classe
- ColorFieldType
- Plugin implementation of the 'color_type' field type.
Namespace
Drupal\color_field\Plugin\Field\FieldTypeCode
public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
$element = [];
$element['opacity'] = [
'#type' => 'checkbox',
'#title' => $this->t('Record opacity'),
'#description' => $this->t('Whether or not to record.'),
'#default_value' => $this->getSetting('opacity'),
];
return $element;
}