protected function LearningPathAchievementTrait::routeMatch in Opigno Learning path 3.x
Retrieves the currently active route match object.
File
- src/
Traits/ LearningPathAchievementTrait.php, line 233
Class
- LearningPathAchievementTrait
- LearningPathAchievementTrait trait.
Namespace
Drupal\opigno_learning_path\TraitsCode
protected function routeMatch() {
if (!$this->routeMatch) {
$this->routeMatch = \Drupal::routeMatch();
}
return $this->routeMatch;
}