You are here

public function StyleTest::buildOptionsForm in Views (for Drupal 7) 8.3

Overrides Drupal\views\Plugin\views\style\StylePluginBase::buildOptionsForm().

Overrides StylePluginBase::buildOptionsForm

File

tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/style/StyleTest.php, line 49
Definition of Drupal\views_test_data\Plugin\views\style\StyleTest.

Class

StyleTest
Provides a general test style plugin.

Namespace

Drupal\views_test_data\Plugin\views\style

Code

public function buildOptionsForm(&$form, &$form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['test_option'] = array(
    '#type' => 'textfield',
    '#description' => t('This is a textfield for test_option.'),
    '#default_value' => $this->options['test_option'],
  );
}