You are here

public function LinkedinAuth::__construct in Social Auth LinkedIn 8

LinkedinLogin 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/LinkedinAuth.php, line 66

Class

LinkedinAuth
Defines Social Auth Linkedin Network Plugin.

Namespace

Drupal\social_auth_linkedin\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;
}