You are here

protected function CountryAwareInOperatorBase::getFieldName in Address 8

Gets the name of the entity field on which this filter operates.

Return value

string The field name.

1 call to CountryAwareInOperatorBase::getFieldName()
CountryAwareInOperatorBase::getAvailableCountries in src/Plugin/views/filter/CountryAwareInOperatorBase.php
Gets the list of available countries for the current entity field.

File

src/Plugin/views/filter/CountryAwareInOperatorBase.php, line 82

Class

CountryAwareInOperatorBase
Abstract base class for country-aware InOperator views filters.

Namespace

Drupal\address\Plugin\views\filter

Code

protected function getFieldName() {
  if (isset($this->configuration['field_name'])) {

    // Configurable field.
    $field_name = $this->configuration['field_name'];
  }
  else {

    // Base field.
    $field_name = $this->configuration['entity field'];
  }
  return $field_name;
}