public function AmpMergeMetadata::__construct in Accelerated Mobile Pages (AMP) 8
Constructs a new AmpMergeMetadata service.
Parameters
EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- src/
Utility/ AmpMergeMetadata.php, line 51
Class
- AmpMergeMetadata
- Class AmpMergeMetadata
Namespace
Drupal\amp\UtilityCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->entityTypeManager = $entity_type_manager;
$this->metadataEntities = $this->entityTypeManager
->getStorage('amp_metadata')
->loadMultiple();
$this->ampGlobalMetadata = [];
$this->ampNodeTypeMetadata = [];
}