EntityRepository::__construct

public EntityRepository::__construct(EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager)

Constructs a new EntityRepository.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

File

core/lib/Drupal/Core/Entity/EntityRepository.php, line 37

Class

EntityRepository
Provides several mechanisms for retrieving entities.

Namespace

Drupal\Core\Entity

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->languageManager = $language_manager;
}
doc_Drupal
2016-10-29 09:07:25
Comments
Leave a Comment

Please login to continue.