You are here

public function TextAlignment::buildConfigurationForm in Bootstrap Styles 1.0.x

Overrides StylePluginBase::buildConfigurationForm

File

src/Plugin/BootstrapStyles/Style/TextAlignment.php, line 25

Class

TextAlignment
Class TextAlignment.

Namespace

Drupal\bootstrap_styles\Plugin\BootstrapStyles\Style

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config();
  $form['typography']['text_alignment'] = [
    '#type' => 'textarea',
    '#default_value' => $config
      ->get('text_alignment'),
    '#title' => $this
      ->t('Text alignment (classes)'),
    '#description' => $this
      ->t('<p>Enter one value per line, in the format <b>key|label</b> where <em>key</em> is the CSS class name (without the .), and <em>label</em> is the human readable name of the text.</p>'),
    '#cols' => 60,
    '#rows' => 5,
  ];
  return $form;
}