protected function ArgumentPluginBase::defineOptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::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 HandlerBase::defineOptions
5 calls to 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.
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 121 - Contains \Drupal\views\Plugin\views\argument\ArgumentPluginBase.
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'] = array(
'default' => 'ignore',
);
$options['exception'] = array(
'contains' => array(
'value' => array(
'default' => 'all',
),
'title_enable' => array(
'default' => FALSE,
),
'title' => array(
'default' => 'All',
),
),
);
$options['title_enable'] = array(
'default' => FALSE,
);
$options['title'] = array(
'default' => '',
);
$options['default_argument_type'] = array(
'default' => 'fixed',
);
$options['default_argument_options'] = array(
'default' => array(),
);
$options['default_argument_skip_url'] = array(
'default' => FALSE,
);
$options['summary_options'] = array(
'default' => array(),
);
$options['summary'] = array(
'contains' => array(
'sort_order' => array(
'default' => 'asc',
),
'number_of_records' => array(
'default' => 0,
),
'format' => array(
'default' => 'default_summary',
),
),
);
$options['specify_validation'] = array(
'default' => FALSE,
);
$options['validate'] = array(
'contains' => array(
'type' => array(
'default' => 'none',
),
'fail' => array(
'default' => 'not found',
),
),
);
$options['validate_options'] = array(
'default' => array(),
);
return $options;
}