protected function ViewsPhp::defineOptions in Views PHP 8
Same name in this branch
- 8 src/Plugin/views/area/ViewsPhp.php \Drupal\views_php\Plugin\views\area\ViewsPhp::defineOptions()
- 8 src/Plugin/views/filter/ViewsPhp.php \Drupal\views_php\Plugin\views\filter\ViewsPhp::defineOptions()
- 8 src/Plugin/views/sort/ViewsPhp.php \Drupal\views_php\Plugin\views\sort\ViewsPhp::defineOptions()
- 8 src/Plugin/views/access/ViewsPhp.php \Drupal\views_php\Plugin\views\access\ViewsPhp::defineOptions()
- 8 src/Plugin/views/cache/ViewsPhp.php \Drupal\views_php\Plugin\views\cache\ViewsPhp::defineOptions()
- 8 src/Plugin/views/field/ViewsPhp.php \Drupal\views_php\Plugin\views\field\ViewsPhp::defineOptions()
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides FieldPluginBase::defineOptions
File
- src/
Plugin/ views/ field/ ViewsPhp.php, line 40 - Contains \Drupal\views_php\Plugin\views\field\ViewsPhp.
Class
- ViewsPhp
- A handler to provide a field that is constructed by the administrator using PHP.
Namespace
Drupal\views_php\Plugin\views\fieldCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['use_php_setup'] = array(
'default' => FALSE,
);
$options['php_setup'] = array(
'default' => '',
);
$options['php_value'] = array(
'default' => '',
);
$options['php_output'] = array(
'default' => '',
);
$options['use_php_click_sortable'] = array(
'default' => self::CLICK_SORT_DISABLED,
);
$options['php_click_sortable'] = array(
'default' => FALSE,
);
return $options;
}