function ArgumentPluginBase::defineOptions
Same name in other branches
- 9 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::defineOptions()
- 8.9.x core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::defineOptions()
- 11.x core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::defineOptions()
Overrides HandlerBase::defineOptions
5 methods override ArgumentPluginBase::defineOptions()
- IndexTidDepth::defineOptions in core/
modules/ taxonomy/ src/ Plugin/ views/ argument/ IndexTidDepth.php - Information about options for all kinds of purposes will be held here.
- ManyToOne::defineOptions in core/
modules/ views/ src/ Plugin/ views/ argument/ ManyToOne.php - Information about options for all kinds of purposes will be held here.
- NullArgument::defineOptions in core/
modules/ views/ src/ Plugin/ views/ argument/ NullArgument.php - Information about options for all kinds of purposes will be held here.
- NumericArgument::defineOptions in core/
modules/ views/ src/ Plugin/ views/ argument/ NumericArgument.php - Information about options for all kinds of purposes will be held here.
- StringArgument::defineOptions in core/
modules/ views/ src/ Plugin/ views/ argument/ StringArgument.php - Information about options for all kinds of purposes will be held here.
File
-
core/
modules/ views/ src/ Plugin/ views/ argument/ ArgumentPluginBase.php, line 174
Class
- ArgumentPluginBase
- Base class for argument (contextual filter) handler plugins.
Namespace
Drupal\views\Plugin\views\argumentCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['default_action'] = [
'default' => 'ignore',
];
$options['exception'] = [
'contains' => [
'value' => [
'default' => 'all',
],
'title_enable' => [
'default' => FALSE,
],
'title' => [
'default' => 'All',
],
],
];
$options['title_enable'] = [
'default' => FALSE,
];
$options['title'] = [
'default' => '',
];
$options['default_argument_type'] = [
'default' => 'fixed',
];
$options['default_argument_options'] = [
'default' => [],
];
$options['summary_options'] = [
'default' => [],
];
$options['summary'] = [
'contains' => [
'sort_order' => [
'default' => 'asc',
],
'number_of_records' => [
'default' => 0,
],
'format' => [
'default' => 'default_summary',
],
],
];
$options['specify_validation'] = [
'default' => FALSE,
];
$options['validate'] = [
'contains' => [
'type' => [
'default' => 'none',
],
'fail' => [
'default' => 'not found',
],
],
];
$options['validate_options'] = [
'default' => [],
];
return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.