You are here

public function GoogleAuth::__construct in Social Auth Google 8

GoogleLogin constructor.

Parameters

\Drupal\Core\Render\MetadataBubblingUrlGenerator $url_generator: Used to generate a absolute url for authentication.

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

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

File

src/Plugin/Network/GoogleAuth.php, line 65

Class

GoogleAuth
Defines Social Auth Google Network Plugin.

Namespace

Drupal\social_auth_google\Plugin\Network

Code

public function __construct(MetadataBubblingUrlGenerator $url_generator, array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $config_factory);
  $this->urlGenerator = $url_generator;
}