You are here

public static function StepsBlock::create 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::create()

Parameters

ContainerInterface $container:

array $configuration:

string $plugin_id:

mixed $plugin_definition:

Return value

StepsBlock

Overrides ContainerFactoryPluginInterface::create

File

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

Class

StepsBlock
Provides a 'article' block.

Namespace

Drupal\opigno_learning_path\Plugin\Block

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('current_user'), $container
    ->get('current_route_match'), $container
    ->get('entity.manager'), $container
    ->get('opigno_learning_path.progress'), $container
    ->get('opigno_group_manager.content_types.manager'));
}