You are here

public function EntityExtraFieldListBuilder::__construct in Entity Extra Field 8

Same name and namespace in other branches
  1. 2.0.x src/Controller/EntityExtraFieldListBuilder.php \Drupal\entity_extra_field\Controller\EntityExtraFieldListBuilder::__construct()

Constructs a new EntityListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

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

\Drupal\Core\Routing\RouteMatchInterface $current_route_match: The current route match service

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

Overrides EntityListBuilder::__construct

File

src/Controller/EntityExtraFieldListBuilder.php, line 40

Class

EntityExtraFieldListBuilder
Define entity extra field list builder.

Namespace

Drupal\entity_extra_field\Controller

Code

public function __construct(EntityTypeInterface $entity_type, RouteMatchInterface $current_route_match, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($entity_type, $entity_type_manager
    ->getStorage($entity_type
    ->id()));
  $this->entityTypeManager = $entity_type_manager;
  $this->currentRouteMatch = $current_route_match;
}