public function AmpMetadataInfo::__construct in Accelerated Mobile Pages (AMP) 8
Constructs an AmpMetadataInfo service.
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.
\Drupal\amp\EntityTypeInfo $entity_type_info: The information on AMP entity types.
File
- src/
AmpMetadataInfo.php, line 46
Class
- AmpMetadataInfo
- Service class for retrieving information about AMP Metadata.
Namespace
Drupal\ampCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, CacheBackendInterface $cache, EntityTypeInfo $entity_type_info) {
$this->entityTypeManager = $entity_type_manager;
$this->cache = $cache;
$this->entityTypeInfo = $entity_type_info;
}