public function ContentOverview::__construct in Total Control Admin Dashboard 8.2
Same name and namespace in other branches
- 3.0.x src/Plugin/Block/ContentOverview.php \Drupal\total_control\Plugin\Block\ContentOverview::__construct()
Creates a ContentOverview block instance.
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\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ ContentOverview.php, line 84
Class
- ContentOverview
- Provides a 'Content Overview'.
Namespace
Drupal\total_control\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler, Connection $connection, TranslationInterface $string_translation, EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->moduleHandler = $module_handler;
$this->connection = $connection;
$this->stringTranslation = $string_translation;
$this->entityTypeManager = $entity_type_manager;
$this->renderer = $renderer;
}