You are here

public function PhotosUserImages::__construct in Album Photos 8.4

Constructs a new BlockContentBlock.

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\Session\AccountInterface $account: The account for which view access should be checked.

\Drupal\Core\Database\Connection $connection: The database connection.

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

Overrides BlockPluginTrait::__construct

File

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

Class

PhotosUserImages
Provides a 'Photos user images' block.

Namespace

Drupal\photos\Plugin\Block

Code

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