You are here

protected function LearningPathAchievementTrait::entityTypeManager in Opigno Learning path 3.x

Retrieves the entity type manager.

File

src/Traits/LearningPathAchievementTrait.php, line 223

Class

LearningPathAchievementTrait
LearningPathAchievementTrait trait.

Namespace

Drupal\opigno_learning_path\Traits

Code

protected function entityTypeManager() {
  if (!$this->entityTypeManager) {
    $this->entityTypeManager = \Drupal::entityTypeManager();
  }
  return $this->entityTypeManager;
}