Same name and namespace in other branches
- 8.x-2.x src/Feeds/Target/Color.php \Drupal\color_field\Feeds\Target\Color::buildConfigurationForm()
Fichier
-
src/
Feeds/ Target/ Color.php, line 35
Classe
- Color
- Defines a color field mapper.
Namespace
Drupal\color_field\Feeds\TargetCode
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;
}