You are here

protected function Select2Widget::getMatchOperatorOptions in Select 2 8

Returns the options for the match operator.

Return value

array List of options.

1 call to Select2Widget::getMatchOperatorOptions()
Select2Widget::buildConfigurationForm in modules/select2_facets/src/Plugin/facets/widget/Select2Widget.php
Provides a configuration form for this widget.

File

modules/select2_facets/src/Plugin/facets/widget/Select2Widget.php, line 174

Class

Select2Widget
The select2 widget.

Namespace

Drupal\select2_facets\Plugin\facets\widget

Code

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