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()
- 10 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::defineOptions()
Overrides HandlerBase::defineOptions
4 calls to ArgumentPluginBase::defineOptions()
- ManyToOne::defineOptions in core/
modules/ views/ src/ Plugin/ views/ argument/ ManyToOne.php - NullArgument::defineOptions in core/
modules/ views/ src/ Plugin/ views/ argument/ NullArgument.php - NumericArgument::defineOptions in core/
modules/ views/ src/ Plugin/ views/ argument/ NumericArgument.php - StringArgument::defineOptions in core/
modules/ views/ src/ Plugin/ views/ argument/ StringArgument.php
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 - NullArgument::defineOptions in core/
modules/ views/ src/ Plugin/ views/ argument/ NullArgument.php - NumericArgument::defineOptions in core/
modules/ views/ src/ Plugin/ views/ argument/ NumericArgument.php - StringArgument::defineOptions in core/
modules/ views/ src/ Plugin/ views/ argument/ StringArgument.php
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.