You are here

public function EventContentBlock::__construct in Open Social 10.0.x

Same name and namespace in other branches
  1. 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()
  2. 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()
  3. 10.2.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\ContentBlock

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->moduleHandler = $module_handler;
}