You are here

protected function ContactAutocompleteWidget::getMatchOperatorOptions in RedHen CRM 8

Returns the options for the match operator.

Return value

array List of options.

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

File

modules/redhen_contact/src/Plugin/Field/FieldWidget/ContactAutocompleteWidget.php, line 132

Class

ContactAutocompleteWidget
Plugin implementation of the 'redhen_contact_autocomplete' widget.

Namespace

Drupal\redhen_contact\Plugin\Field\FieldWidget

Code

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