You are here

public function BlockService::__construct in Opigno dashboard 3.x

Same name and namespace in other branches
  1. 8 src/BlockService.php \Drupal\opigno_dashboard\BlockService::__construct()

BlockService constructor.

Parameters

\Drupal\Core\Block\BlockManagerInterface $block_manager: The block manager service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\Core\Session\AccountInterface $account: The current user account.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

\Drupal\Core\Database\Connection $database: The database connection service.

File

src/BlockService.php, line 83

Class

BlockService
The dashboard block manager service definition.

Namespace

Drupal\opigno_dashboard

Code

public function __construct(BlockManagerInterface $block_manager, RendererInterface $renderer, AccountInterface $account, ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, Connection $database) {
  $this->blockManager = $block_manager;
  $this->renderer = $renderer;
  $this->currentUser = $account;
  $this->configFactory = $config_factory;
  $this->moduleHandler = $module_handler;
  $this->database = $database;
}