You are here

public function FacebookAuthSettingsForm::__construct in Social Auth Facebook 8.2

Same name and namespace in other branches
  1. 8 src/Form/FacebookAuthSettingsForm.php \Drupal\social_auth_facebook\Form\FacebookAuthSettingsForm::__construct()
  2. 3.x src/Form/FacebookAuthSettingsForm.php \Drupal\social_auth_facebook\Form\FacebookAuthSettingsForm::__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.

\Drupal\Core\Routing\RequestContext $request_context: Holds information about the current request.

File

src/Form/FacebookAuthSettingsForm.php, line 38

Class

FacebookAuthSettingsForm
Settings form for Social Auth Facebook.

Namespace

Drupal\social_auth_facebook\Form

Code

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