public function EventContentBlock::__construct in Open Social 10.2.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_content_block/modules/social_event_content_block/src/Plugin/ContentBlock/EventContentBlock.php \Drupal\social_event_content_block\Plugin\ContentBlock\EventContentBlock::__construct()
- 10.0.x modules/social_features/social_content_block/modules/social_event_content_block/src/Plugin/ContentBlock/EventContentBlock.php \Drupal\social_event_content_block\Plugin\ContentBlock\EventContentBlock::__construct()
- 10.1.x modules/social_features/social_content_block/modules/social_event_content_block/src/Plugin/ContentBlock/EventContentBlock.php \Drupal\social_event_content_block\Plugin\ContentBlock\EventContentBlock::__construct()
BookAddBlock constructor.
Parameters
array $configuration: The given configuration.
string $plugin_id: The given plugin id.
mixed $plugin_definition: The given plugin definition.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module handler.
Overrides PluginBase::__construct
File
- modules/
social_features/ social_content_block/ modules/ social_event_content_block/ src/ Plugin/ ContentBlock/ EventContentBlock.php, line 48
Class
- EventContentBlock
- Provides a content block for events.
Namespace
Drupal\social_event_content_block\Plugin\ContentBlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->moduleHandler = $module_handler;
}