function SiteInformationForm::__construct

Same name in other branches
  1. 9 core/modules/system/src/Form/SiteInformationForm.php \Drupal\system\Form\SiteInformationForm::__construct()
  2. 8.9.x core/modules/system/src/Form/SiteInformationForm.php \Drupal\system\Form\SiteInformationForm::__construct()
  3. 10 core/modules/system/src/Form/SiteInformationForm.php \Drupal\system\Form\SiteInformationForm::__construct()

Constructs a SiteInformationForm object.

Parameters

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

\Drupal\Core\Config\TypedConfigManagerInterface $typedConfigManager: The typed config manager.

\Drupal\path_alias\AliasManagerInterface $alias_manager: The path alias manager.

\Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator.

\Drupal\Core\Routing\RequestContext $request_context: The request context.

Overrides ConfigFormBase::__construct

File

core/modules/system/src/Form/SiteInformationForm.php, line 57

Class

SiteInformationForm
Configure site information settings for this site.

Namespace

Drupal\system\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, AliasManagerInterface $alias_manager, PathValidatorInterface $path_validator, RequestContext $request_context) {
    parent::__construct($config_factory, $typedConfigManager);
    $this->aliasManager = $alias_manager;
    $this->pathValidator = $path_validator;
    $this->requestContext = $request_context;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.