You are here

public function AdministrativeArea::__construct in Address 8

Constructs a new AdministrativeArea 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.

\CommerceGuys\Addressing\AddressFormat\AddressFormatRepositoryInterface $address_format_repository: The address format repository.

\CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface $subdivision_repository: The subdivision repository.

Overrides CountryAwareInOperatorBase::__construct

File

src/Plugin/views/filter/AdministrativeArea.php, line 74

Class

AdministrativeArea
Filter by administrative area.

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, AddressFormatRepositoryInterface $address_format_repository, SubdivisionRepositoryInterface $subdivision_repository) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $country_repository, $entity_type_manager, $entity_field_manager);
  $this->addressFormatRepository = $address_format_repository;
  $this->subdivisionRepository = $subdivision_repository;
  $this->formState = NULL;
  $this->currentCountryCode = '';
}