You are here

public function AmpMetadataListBuilder::__construct in Accelerated Mobile Pages (AMP) 8

Constructs a new EntityListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

\Drupal\amp\AmpMetadataInfo $amp_metadata_info: The AMP metadata info service.

\Drupal\amp\EntityTypeInfo $entity_type_info: Information about AMP-enabled node types.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

Overrides EntityListBuilder::__construct

File

src/AmpMetadataListBuilder.php, line 73

Class

AmpMetadataListBuilder
Provides a listing of AMP Metadata entities.

Namespace

Drupal\amp

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, AmpMetadataInfo $amp_metadata_info, EntityTypeInfo $entity_type_info, ModuleHandlerInterface $module_handler) {
  parent::__construct($entity_type, $storage);
  $this->ampMetadataInfo = $amp_metadata_info;
  $this->entityTypeInfo = $entity_type_info;
  $this->moduleHandler = $module_handler;
}