You are here

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

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

Constructs a AmpSettingsForm object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

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

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

Overrides ConfigFormBase::__construct

File

src/Form/AmpSettingsForm.php, line 97

Class

AmpSettingsForm
Defines the configuration export form.

Namespace

Drupal\amp\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ThemeHandlerInterface $theme_handler, CacheTagsInvalidatorInterface $tag_invalidate, EntityTypeInfo $entity_type_info) {
  parent::__construct($config_factory);
  $this->themeHandler = $theme_handler;
  $this->themeOptions = $this
    ->getThemeOptions();
  $this->tagInvalidate = $tag_invalidate;
  $this->entityTypeInfo = $entity_type_info;
}