You are here

protected function EntityReferenceAutocompleteWidget::getMatchOperatorOptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\EntityReferenceAutocompleteWidget::getMatchOperatorOptions()

Returns the options for the match operator.

Return value

array List of options.

2 calls to EntityReferenceAutocompleteWidget::getMatchOperatorOptions()
EntityReferenceAutocompleteWidget::settingsForm in core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php
Returns a form to configure settings for the widget.
EntityReferenceAutocompleteWidget::settingsSummary in core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php
Returns a short summary for the current widget settings.

File

core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php, line 188
Contains \Drupal\Core\Field\Plugin\Field\FieldWidget\EntityReferenceAutocompleteWidget.

Class

EntityReferenceAutocompleteWidget
Plugin implementation of the 'entity_reference_autocomplete' widget.

Namespace

Drupal\Core\Field\Plugin\Field\FieldWidget

Code

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