You are here

protected function AutocompleteDeluxeWidget::getMatchOperatorOptions in Autocomplete Deluxe 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldWidget/AutocompleteDeluxeWidget.php \Drupal\autocomplete_deluxe\Plugin\Field\FieldWidget\AutocompleteDeluxeWidget::getMatchOperatorOptions()

Returns the options for the match operator.

Return value

array List of options.

File

src/Plugin/Field/FieldWidget/AutocompleteDeluxeWidget.php, line 358

Class

AutocompleteDeluxeWidget
Plugin implementation of the 'options_buttons' widget.

Namespace

Drupal\autocomplete_deluxe\Plugin\Field\FieldWidget

Code

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