protected function EntityReferenceFilterViewResult::defineOptions in Views Reference Filter 8
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 ManyToOne::defineOptions
File
- src/
Plugin/ views/ filter/ EntityReferenceFilterViewResult.php, line 134
Class
- EntityReferenceFilterViewResult
- Filter by entity id using items got from the another view..
Namespace
Drupal\entityreference_filter\Plugin\views\filterCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['type'] = [
'default' => 'select',
];
$options['reference_display'] = [
'default' => '',
];
$options['reference_arguments'] = [
'default' => '',
];
$options['hide_empty_filter'] = [
'default' => TRUE,
];
return $options;
}