You are here

public function PhotosInformation::__construct in Album Photos 8.4

Same name and namespace in other branches
  1. 8.5 src/Plugin/Block/PhotosInformation.php \Drupal\photos\Plugin\Block\PhotosInformation::__construct()
  2. 6.0.x src/Plugin/Block/PhotosInformation.php \Drupal\photos\Plugin\Block\PhotosInformation::__construct()

Constructs a new BookNavigationBlock 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\Database\Connection $connection: The database connection.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The current request stack.

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

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/PhotosInformation.php, line 63

Class

PhotosInformation
Provides a 'Photo information' block.

Namespace

Drupal\photos\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $connection, RequestStack $request_stack, RouteMatchInterface $route_match) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->connection = $connection;
  $this->requestStack = $request_stack;
  $this->routeMatch = $route_match;
}