public function DisplayTest::buildOptionsForm in Views (for Drupal 7) 8.3
Overrides Drupal\views\Plugin\views\display\DisplayPluginBase::buildOptionsForm().
Overrides DisplayPluginBase::buildOptionsForm
File
- tests/
views_test_data/ lib/ Drupal/ views_test_data/ Plugin/ views/ display/ DisplayTest.php, line 69 - Definition of Drupal\views_test_data\Plugin\views\display\DisplayTest.
Class
- DisplayTest
- Defines a Display test plugin.
Namespace
Drupal\views_test_data\Plugin\views\displayCode
public function buildOptionsForm(&$form, &$form_state) {
parent::buildOptionsForm($form, $form_state);
switch ($form_state['section']) {
case 'test_option':
$form['#title'] .= t('Test option');
$form['test_option'] = array(
'#type' => 'textfield',
'#description' => t('This is a textfield for test_option.'),
'#default_value' => $this
->getOption('test_option'),
);
break;
}
}