protected function Fields::defineOptions in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/row/Fields.php \Drupal\views\Plugin\views\row\Fields::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 RowPluginBase::defineOptions
1 call to Fields::defineOptions()
- EntityReference::defineOptions in core/
modules/ views/ src/ Plugin/ views/ row/ EntityReference.php - Information about options for all kinds of purposes will be held here.
1 method overrides Fields::defineOptions()
- EntityReference::defineOptions in core/
modules/ views/ src/ Plugin/ views/ row/ EntityReference.php - Information about options for all kinds of purposes will be held here.
File
- core/
modules/ views/ src/ Plugin/ views/ row/ Fields.php, line 32
Class
- Fields
- The basic 'fields' row plugin
Namespace
Drupal\views\Plugin\views\rowCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['inline'] = [
'default' => [],
];
$options['separator'] = [
'default' => '',
];
$options['hide_empty'] = [
'default' => FALSE,
];
$options['default_field_elements'] = [
'default' => TRUE,
];
return $options;
}