public function SynonymsEntity::defineOptions in Synonyms 8
Same name in this branch
- 8 synonyms_views_argument_validator/src/Plugin/views/argument_validator/SynonymsEntity.php \Drupal\synonyms_views_argument_validator\Plugin\views\argument_validator\SynonymsEntity::defineOptions()
- 8 synonyms_views_filter/src/Plugin/views/filter/SynonymsEntity.php \Drupal\synonyms_views_filter\Plugin\views\filter\SynonymsEntity::defineOptions()
Same name and namespace in other branches
- 2.0.x modules/synonyms_views_filter/src/Plugin/views/filter/SynonymsEntity.php \Drupal\synonyms_views_filter\Plugin\views\filter\SynonymsEntity::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 FilterPluginBase::defineOptions
File
- synonyms_views_filter/
src/ Plugin/ views/ filter/ SynonymsEntity.php, line 60
Class
- SynonymsEntity
- Filter entity by its name or one of its synonyms.
Namespace
Drupal\synonyms_views_filter\Plugin\views\filterCode
public function defineOptions() {
$options = parent::defineOptions();
$options['widget'] = [
'default' => 'autocomplete',
];
$options['target_bundles'] = [
'default' => NULL,
];
return $options;
}