public function EntityTypeRepository::__construct

public EntityTypeRepository::__construct(EntityTypeManagerInterface $entity_type_manager)

Constructs a new EntityTypeRepository.

Parameters

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

File

core/lib/Drupal/Core/Entity/EntityTypeRepository.php, line 38

Class

EntityTypeRepository
Provides helper methods for loading entity types.

Namespace

Drupal\Core\Entity

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityTypeRepository.php/function/EntityTypeRepository::__construct/8.1.x