public function TestTextColorBehavior::buildConfigurationForm

Overrides ParagraphsBehaviorBase::buildConfigurationForm

File

paragraphs/tests/modules/paragraphs_test/src/Plugin/paragraphs/Behavior/TestTextColorBehavior.php, line 26

Class

TestTextColorBehavior
Provides a test feature plugin.

Namespace

Drupal\paragraphs_test\Plugin\paragraphs\Behavior

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  $form['default_color'] = [
    '#type' => 'textfield',
    '#title' => $this
      ->t('Default Color'),
    '#maxlength' => 255,
    '#default_value' => $this->configuration['default_color'],
    '#description' => $this
      ->t("Text color for the paragraph."),
  ];
  return $form;
}