You are here

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

Overrides StylePluginBase::buildConfigurationForm

File

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

Class

BoxShadow
Class BoxShadow.

Namespace

Drupal\bootstrap_styles\Plugin\BootstrapStyles\Style

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config();
  $form['shadow']['box_shadow'] = [
    '#type' => 'textarea',
    '#default_value' => $config
      ->get('box_shadow'),
    '#title' => $this
      ->t('Box shadow (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;
}