You are here

public function SocialAuthSettingsForm::__construct in Social Auth 8.2

Same name and namespace in other branches
  1. 8 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.

Overrides ConfigFormBase::__construct

File

src/Form/SocialAuthSettingsForm.php, line 31

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) {
  parent::__construct($config_factory);
  $this->routeProvider = $route_provider;
}