protected function TermName::defineOptions in Zircon Profile 8.0
Same name in this branch
- 8.0 core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php \Drupal\taxonomy\Plugin\views\argument_validator\TermName::defineOptions()
- 8.0 core/modules/taxonomy/src/Plugin/views/field/TermName.php \Drupal\taxonomy\Plugin\views\field\TermName::defineOptions()
Same name and namespace in other branches
- 8 core/modules/taxonomy/src/Plugin/views/field/TermName.php \Drupal\taxonomy\Plugin\views\field\TermName::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 Field::defineOptions
File
- core/
modules/ taxonomy/ src/ Plugin/ views/ field/ TermName.php, line 42 - Contains \Drupal\taxonomy\Plugin\views\field\TermName.
Class
- TermName
- Displays taxonomy term names and allows converting spaces to hyphens.
Namespace
Drupal\taxonomy\Plugin\views\fieldCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['convert_spaces'] = array(
'default' => FALSE,
);
return $options;
}