You are here

public function SocialAuthSettingsForm::__construct in Social Auth 8

Same name and namespace in other branches
  1. 8.2 src/Form/SocialAuthSettingsForm.php \Drupal\social_auth\Form\SocialAuthSettingsForm::__construct()
  2. 3.x src/Form/SocialAuthSettingsForm.php \Drupal\social_auth\Form\SocialAuthSettingsForm::__construct()

Constructor.

Parameters

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

\Drupal\Core\Routing\RouteProviderInterface $route_provider: Used to check if route exists.

\Drupal\Core\Path\PathValidatorInterface $path_validator: Used to check if path is valid and exists.

Overrides ConfigFormBase::__construct

File

src/Form/SocialAuthSettingsForm.php, line 41

Class

SocialAuthSettingsForm
Defines a form that configures Social Auth settings.

Namespace

Drupal\social_auth\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, RouteProviderInterface $route_provider, PathValidatorInterface $path_validator) {
  parent::__construct($config_factory);
  $this->routeProvider = $route_provider;
  $this->pathValidator = $path_validator;
}