You are here

protected function EntityReferenceSynonymsAutocomplete::getMatchOperatorOptions in Synonyms 8

Returns the options for the match operator.

Return value

array List of options.

1 call to EntityReferenceSynonymsAutocomplete::getMatchOperatorOptions()
EntityReferenceSynonymsAutocomplete::settingsForm in src/Plugin/Field/FieldWidget/EntityReferenceSynonymsAutocomplete.php
Returns a form to configure settings for the widget.

File

src/Plugin/Field/FieldWidget/EntityReferenceSynonymsAutocomplete.php, line 125

Class

EntityReferenceSynonymsAutocomplete
Plugin implementation of the 'synonyms friendly autocomplete' widget.

Namespace

Drupal\synonyms\Plugin\Field\FieldWidget

Code

protected function getMatchOperatorOptions() {
  return [
    'STARTS_WITH' => t('Starts with'),
    'CONTAINS' => t('Contains'),
  ];
}