public function ViewsPhp::buildOptionsForm in Views PHP 8
Same name in this branch
- 8 src/Plugin/views/area/ViewsPhp.php \Drupal\views_php\Plugin\views\area\ViewsPhp::buildOptionsForm()
- 8 src/Plugin/views/filter/ViewsPhp.php \Drupal\views_php\Plugin\views\filter\ViewsPhp::buildOptionsForm()
- 8 src/Plugin/views/sort/ViewsPhp.php \Drupal\views_php\Plugin\views\sort\ViewsPhp::buildOptionsForm()
- 8 src/Plugin/views/access/ViewsPhp.php \Drupal\views_php\Plugin\views\access\ViewsPhp::buildOptionsForm()
- 8 src/Plugin/views/cache/ViewsPhp.php \Drupal\views_php\Plugin\views\cache\ViewsPhp::buildOptionsForm()
- 8 src/Plugin/views/field/ViewsPhp.php \Drupal\views_php\Plugin\views\field\ViewsPhp::buildOptionsForm()
Provide a form to edit options for this plugin.
Overrides TokenizeAreaPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ area/ ViewsPhp.php, line 34 - Definition of Drupal\views_php\Plugin\views\area\ViewsPhp.
Class
- ViewsPhp
- Views area PHP text handler.
Namespace
Drupal\views_php\Plugin\views\areaCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form += views_php_form_element($this, FALSE, array(
'php_output',
t('Output code'),
t('Code to construct the output of this area.'),
TRUE,
), array(
'$view',
'$handler',
'$results',
));
$form['#attached']['library'][] = 'views_php/drupal.views_php';
}