You are here

public function EntityTypeInfo::__construct in Accelerated Mobile Pages (AMP) 8.3

Same name and namespace in other branches
  1. 8 src/EntityTypeInfo.php \Drupal\amp\EntityTypeInfo::__construct()
  2. 8.2 src/EntityTypeInfo.php \Drupal\amp\EntityTypeInfo::__construct()

Constructs a new EntityTypeRepository.

Parameters

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

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend interface to use for the complete theme registry data.

File

src/EntityTypeInfo.php, line 37

Class

EntityTypeInfo
Service class for retrieving and manipulating entity type information.

Namespace

Drupal\amp

Code

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