public function OpignoLearningPathProgress::__construct in Opigno Learning path 3.x
Constructs a Handler object.
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.
Overrides HandlerBase::__construct
File
- src/
Plugin/ views/ field/ OpignoLearningPathProgress.php, line 38
Class
- OpignoLearningPathProgress
- Field handler to output user progress for current LP.
Namespace
Drupal\opigno_learning_path\Plugin\views\fieldCode
public function __construct(AccountInterface $user, Progress $progress, ...$default) {
parent::__construct(...$default);
$this->uid = (int) $user
->id();
$this->progress = $progress;
}