You are here

public function SocialAuthLoginBlock::__construct in Social Auth 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Block/SocialAuthLoginBlock.php \Drupal\social_auth\Plugin\Block\SocialAuthLoginBlock::__construct()
  2. 8 src/Plugin/Block/SocialAuthLoginBlock.php \Drupal\social_auth\Plugin\Block\SocialAuthLoginBlock::__construct()

SocialAuthLoginBlock constructor.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Config\ImmutableConfig $social_auth_config: The Immutable configuration for social_oauth.settings.

\Drupal\social_api\Plugin\NetworkManager $network_manager: The Social API network manager.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/SocialAuthLoginBlock.php, line 49

Class

SocialAuthLoginBlock
Provides a Social Auth Block for Login.

Namespace

Drupal\social_auth\Plugin\Block

Code

public function __construct(array $configuration, string $plugin_id, $plugin_definition, ImmutableConfig $social_auth_config, NetworkManager $network_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->networkManager = $network_manager;
  $this->socialAuthConfig = $social_auth_config;
}