You are here

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

Constructs a AmpMetadataForm object.

Parameters

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

\Drupal\file\FileUsage\DatabaseFileUsageBackend: The file usage service.

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $tag_invalidate: The cache tags invalidator.

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

File

src/Form/AmpMetadataForm.php, line 74

Class

AmpMetadataForm
Class AmpMetadataForm.

Namespace

Drupal\amp\Form

Code

public function __construct(AmpMetadataInfo $amp_metadata_info, DatabaseFileUsageBackend $file_usage, CacheTagsInvalidatorInterface $tag_invalidate, ModuleHandlerInterface $module_handler) {
  $this->ampMetadataInfo = $amp_metadata_info;
  $this->fileUsage = $file_usage;
  $this->tagInvalidate = $tag_invalidate;
  $this->moduleHandler = $module_handler;
}