You are here

public function Subdivision::__construct in Address 8

Constructs a Subdivision object.

Parameters

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

string $plugin_id: The id of the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

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

Overrides HandlerBase::__construct

File

src/Plugin/views/field/Subdivision.php, line 40

Class

Subdivision
Displays the subdivision.

Namespace

Drupal\address\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, SubdivisionRepositoryInterface $subdivision_repository) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->subdivisionRepository = $subdivision_repository;
}