protected function StylePluginBase::defineOptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::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 PluginBase::defineOptions
9 calls to StylePluginBase::defineOptions()
- DefaultSummary::defineOptions in core/
modules/ views/ src/ Plugin/ views/ style/ DefaultSummary.php - Information about options for all kinds of purposes will be held here.
- EntityReference::defineOptions in core/
modules/ views/ src/ Plugin/ views/ style/ EntityReference.php - Information about options for all kinds of purposes will be held here.
- Grid::defineOptions in core/
modules/ views/ src/ Plugin/ views/ style/ Grid.php - Information about options for all kinds of purposes will be held here.
- HtmlList::defineOptions in core/
modules/ views/ src/ Plugin/ views/ style/ HtmlList.php - Set default options
- Mapping::defineOptions in core/
modules/ views/ src/ Plugin/ views/ style/ Mapping.php - Information about options for all kinds of purposes will be held here.
9 methods override StylePluginBase::defineOptions()
- DefaultSummary::defineOptions in core/
modules/ views/ src/ Plugin/ views/ style/ DefaultSummary.php - Information about options for all kinds of purposes will be held here.
- EntityReference::defineOptions in core/
modules/ views/ src/ Plugin/ views/ style/ EntityReference.php - Information about options for all kinds of purposes will be held here.
- Grid::defineOptions in core/
modules/ views/ src/ Plugin/ views/ style/ Grid.php - Information about options for all kinds of purposes will be held here.
- HtmlList::defineOptions in core/
modules/ views/ src/ Plugin/ views/ style/ HtmlList.php - Set default options
- Mapping::defineOptions in core/
modules/ views/ src/ Plugin/ views/ style/ Mapping.php - Information about options for all kinds of purposes will be held here.
File
- core/
modules/ views/ src/ Plugin/ views/ style/ StylePluginBase.php, line 258 - Contains \Drupal\views\Plugin\views\style\StylePluginBase.
Class
- StylePluginBase
- Base class for views style plugins.
Namespace
Drupal\views\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['grouping'] = array(
'default' => array(),
);
if ($this
->usesRowClass()) {
$options['row_class'] = array(
'default' => '',
);
$options['default_row_class'] = array(
'default' => TRUE,
);
}
$options['uses_fields'] = array(
'default' => FALSE,
);
return $options;
}