Same name and namespace in other branches
  1. 8.x-2.x src/Feeds/Target/Color.php \Drupal\color_field\Feeds\Target\Color::buildConfigurationForm() 1 comment

File

src/Feeds/Target/Color.php, line 35

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;
}