protected function EntityReference::defineOptions in Drupal 9
Same name in this branch
- 9 core/modules/views/src/Plugin/views/display/EntityReference.php \Drupal\views\Plugin\views\display\EntityReference::defineOptions()
- 9 core/modules/views/src/Plugin/views/style/EntityReference.php \Drupal\views\Plugin\views\style\EntityReference::defineOptions()
- 9 core/modules/views/src/Plugin/views/row/EntityReference.php \Drupal\views\Plugin\views\row\EntityReference::defineOptions()
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/style/EntityReference.php \Drupal\views\Plugin\views\style\EntityReference::defineOptions()
- 10 core/modules/views/src/Plugin/views/style/EntityReference.php \Drupal\views\Plugin\views\style\EntityReference::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 StylePluginBase::defineOptions
File
- core/
modules/ views/ src/ Plugin/ views/ style/ EntityReference.php, line 42
Class
- EntityReference
- EntityReference style plugin.
Namespace
Drupal\views\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['search_fields'] = [
'default' => [],
];
return $options;
}