You are here

protected function Select2EntityReferenceWidget::getMatchOperatorOptions in Select 2 8

Returns the options for the match operator.

Return value

array List of options.

2 calls to Select2EntityReferenceWidget::getMatchOperatorOptions()
Select2EntityReferenceWidget::settingsForm in src/Plugin/Field/FieldWidget/Select2EntityReferenceWidget.php
Returns a form to configure settings for the widget.
Select2EntityReferenceWidget::settingsSummary in src/Plugin/Field/FieldWidget/Select2EntityReferenceWidget.php
Returns a short summary for the current widget settings.

File

src/Plugin/Field/FieldWidget/Select2EntityReferenceWidget.php, line 308

Class

Select2EntityReferenceWidget
Plugin implementation of the 'select2' widget.

Namespace

Drupal\select2\Plugin\Field\FieldWidget

Code

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