You are here

protected function InlineEntityFormComplex::getMatchOperatorOptions in Inline Entity Form 8

Returns the options for the match operator.

Return value

array List of options.

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

File

src/Plugin/Field/FieldWidget/InlineEntityFormComplex.php, line 193

Class

InlineEntityFormComplex
Complex inline widget.

Namespace

Drupal\inline_entity_form\Plugin\Field\FieldWidget

Code

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