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