Same name and namespace in other branches
- 3.0.x src/Feeds/Target/Color.php \Drupal\color_field\Feeds\Target\Color::buildConfigurationForm()
File
-
src/Feeds/Target/Color.php, line 72
Class
- Color
- Defines a color field mapper.
Namespace
Drupal\color_field\Feeds\Target
Code
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form = parent::buildConfigurationForm($form, $form_state);
$form['format'] = [
'#type' => 'select',
'#title' => $this->t('Format'),
'#options' => [
'#HEXHEX' => $this->t('#123ABC'),
'HEXHEX' => $this->t('123ABC'),
'#hexhex' => $this->t('#123abc'),
'hexhex' => $this->t('123abc'),
],
'#default_value' => $this->configuration['format'],
];
return $form;
}