protected function EntityReferenceSynonymsAutocomplete::getMatchOperatorOptions in Synonyms 2.0.x
Returns the options for the match operator.
Return value
array List of options.
1 call to EntityReferenceSynonymsAutocomplete::getMatchOperatorOptions()
- EntityReferenceSynonymsAutocomplete::settingsForm in modules/
synonyms_autocomplete/ src/ Plugin/ Field/ FieldWidget/ EntityReferenceSynonymsAutocomplete.php - Returns a form to configure settings for the widget.
File
- modules/
synonyms_autocomplete/ src/ Plugin/ Field/ FieldWidget/ EntityReferenceSynonymsAutocomplete.php, line 125
Class
- EntityReferenceSynonymsAutocomplete
- Plugin implementation of the 'synonyms friendly autocomplete' widget.
Namespace
Drupal\synonyms_autocomplete\Plugin\Field\FieldWidgetCode
protected function getMatchOperatorOptions() {
return [
'STARTS_WITH' => t('Starts with'),
'CONTAINS' => t('Contains'),
];
}