You are here

public function CountryItem::__construct in Country 8

Constructs a new instance.

Parameters

array $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.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: EntityManager that is stored internally and used to load nodes.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.

Overrides HandlerBase::__construct

File

src/Plugin/views/filter/CountryItem.php, line 50

Class

CountryItem
Filter by country ISO2.

Namespace

Drupal\country\Plugin\views\filter

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityFieldManagerInterface $entity_field_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityFieldManager = $entity_field_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
}