You are here

public function LearningPathAchievementTrait::currentUser in Opigno Learning path 3.x

Gets a current user.

4 calls to LearningPathAchievementTrait::currentUser()
DefaultTwigExtension::get_start_link in src/TwigExtension/DefaultTwigExtension.php
Returns group start link.
LearningPathAchievementTrait::getActivities in src/Traits/LearningPathAchievementTrait.php
Gets the activities list by the group and module.
LearningPathAchievementTrait::getActivityStatus in src/Traits/LearningPathAchievementTrait.php
Gets a statuses of activities.
LearningPathAchievementTrait::getStepsByGroup in src/Traits/LearningPathAchievementTrait.php
Retrieves the steps by group.

File

src/Traits/LearningPathAchievementTrait.php, line 243

Class

LearningPathAchievementTrait
LearningPathAchievementTrait trait.

Namespace

Drupal\opigno_learning_path\Traits

Code

public function currentUser() {
  return \Drupal::currentUser();
}