You are here

public function StepsBlock::__construct in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x src/Plugin/Block/StepsBlock.php \Drupal\opigno_learning_path\Plugin\Block\StepsBlock::__construct()

StepsBlock constructor.

Parameters

array $configuration:

string $plugin_id:

mixed $plugin_definition:

AccountProxyInterface $account:

ResettableStackedRouteMatchInterface $route_match:

EntityTypeManagerInterface $entity_type_manager:

Progress $progress:

OpignoGroupContentTypesManager $opigno_group_content_types_manager:

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/StepsBlock.php, line 72

Class

StepsBlock
Provides a 'article' block.

Namespace

Drupal\opigno_learning_path\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountProxyInterface $account, ResettableStackedRouteMatchInterface $route_match, EntityTypeManagerInterface $entity_type_manager, Progress $progress, OpignoGroupContentTypesManager $opigno_group_content_types_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->account = $account;
  $this->routeMatch = $route_match;
  $this->entityTypeManager = $entity_type_manager;
  $this->progress = $progress;
  $this->opignoGroupContentTypesManager = $opigno_group_content_types_manager;
}