function SiteInformationForm::__construct
Same name in other branches
- 9 core/modules/system/src/Form/SiteInformationForm.php \Drupal\system\Form\SiteInformationForm::__construct()
- 10 core/modules/system/src/Form/SiteInformationForm.php \Drupal\system\Form\SiteInformationForm::__construct()
- 11.x 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\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 54
Class
- SiteInformationForm
- Configure site information settings for this site.
Namespace
Drupal\system\FormCode
public function __construct(ConfigFactoryInterface $config_factory, $alias_manager, PathValidatorInterface $path_validator, RequestContext $request_context) {
parent::__construct($config_factory);
if (!$alias_manager instanceof AliasManagerInterface) {
@trigger_error('Calling \\' . __METHOD__ . ' with \\' . CoreAliasManagerInterface::class . ' instead of \\' . AliasManagerInterface::class . ' is deprecated in drupal:8.8.0. The new service will be required in drupal:9.0.0. See https://www.drupal.org/node/3092086', E_USER_DEPRECATED);
$alias_manager = \Drupal::service('path_alias.manager');
}
$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.