public function PhotosInformation::__construct in Album Photos 8.5
Same name and namespace in other branches
- 8.4 src/Plugin/Block/PhotosInformation.php \Drupal\photos\Plugin\Block\PhotosInformation::__construct()
- 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.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager service.
\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 74
Class
- PhotosInformation
- Provides a 'Photo information' block.
Namespace
Drupal\photos\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $connection, EntityTypeManagerInterface $entity_manager, RequestStack $request_stack, RouteMatchInterface $route_match) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->connection = $connection;
$this->entityTypeManager = $entity_manager;
$this->requestStack = $request_stack;
$this->routeMatch = $route_match;
}