public function RecentGroupContentBlock::__construct in Organic groups 8
Constructs a RecentGroupContentBlock object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
string $plugin_definition: The plugin implementation definition.
\Drupal\og\OgContextInterface $og_context: The OG context provider.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\og\GroupTypeManagerInterface $group_type_manager: The OG group type manager.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The bundle info service.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ RecentGroupContentBlock.php, line 75
Class
- RecentGroupContentBlock
- Provides a block that shows recent group content for the current group.
Namespace
Drupal\og\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, OgContextInterface $og_context, EntityTypeManagerInterface $entity_type_manager, GroupTypeManagerInterface $group_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
$this->ogContext = $og_context;
$this->entityTypeManager = $entity_type_manager;
$this->groupTypeManager = $group_type_manager;
$this->entityTypeBundleInfo = $entity_type_bundle_info;
parent::__construct($configuration, $plugin_id, $plugin_definition);
}