public function SocialAlbumCountAndAddBlock::__construct in Open Social 10.3.x
Same name and namespace in other branches
- 10.0.x modules/social_features/social_album/src/Plugin/Block/SocialAlbumCountAndAddBlock.php \Drupal\social_album\Plugin\Block\SocialAlbumCountAndAddBlock::__construct()
- 10.1.x modules/social_features/social_album/src/Plugin/Block/SocialAlbumCountAndAddBlock.php \Drupal\social_album\Plugin\Block\SocialAlbumCountAndAddBlock::__construct()
- 10.2.x modules/social_features/social_album/src/Plugin/Block/SocialAlbumCountAndAddBlock.php \Drupal\social_album\Plugin\Block\SocialAlbumCountAndAddBlock::__construct()
Constructs a SocialAlbumCountAndAddBlock object.
Parameters
array $configuration: The block configuration.
string $plugin_id: The ID of the plugin.
mixed $plugin_definition: The plugin definition.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The currently active route match object.
Overrides BlockPluginTrait::__construct
File
- modules/
social_features/ social_album/ src/ Plugin/ Block/ SocialAlbumCountAndAddBlock.php, line 55
Class
- SocialAlbumCountAndAddBlock
- Provides a block to display images count and a button for adding new images.
Namespace
Drupal\social_album\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteMatchInterface $route_match) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->routeMatch = $route_match;
}