You are here

public function CountryAwareInOperatorBase::__construct in Address 8

Constructs a new CountryAwareInOperatorBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\CommerceGuys\Addressing\Country\CountryRepositoryInterface $country_repository: The country repository.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

Overrides HandlerBase::__construct

1 call to CountryAwareInOperatorBase::__construct()
AdministrativeArea::__construct in src/Plugin/views/filter/AdministrativeArea.php
Constructs a new AdministrativeArea object.
1 method overrides CountryAwareInOperatorBase::__construct()
AdministrativeArea::__construct in src/Plugin/views/filter/AdministrativeArea.php
Constructs a new AdministrativeArea object.

File

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

Class

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

Namespace

Drupal\address\Plugin\views\filter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, CountryRepositoryInterface $country_repository, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->countryRepository = $country_repository;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
}