You are here

public function PhotosAccess::__construct in Album Photos 8.5

Same name and namespace in other branches
  1. 6.0.x photos_access/src/Plugin/views/access/PhotosAccess.php \Drupal\photos_access\Plugin\views\access\PhotosAccess::__construct()

Constructs the photos access control handler instance.

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.

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

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

Overrides PluginBase::__construct

File

photos_access/src/Plugin/views/access/PhotosAccess.php, line 56

Class

PhotosAccess
Access plugin for photos album and images.

Namespace

Drupal\photos_access\Plugin\views\access

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_manager, RouteMatchInterface $route_match) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_manager;
  $this->routeMatch = $route_match;
}