public function SocialAuthLoginBlock::__construct in Social Auth 8
Same name and namespace in other branches
- 8.2 src/Plugin/Block/SocialAuthLoginBlock.php \Drupal\social_auth\Plugin\Block\SocialAuthLoginBlock::__construct()
- 3.x 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.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ SocialAuthLoginBlock.php, line 41
Class
- SocialAuthLoginBlock
- Provides a Social Auth Block for Login.
Namespace
Drupal\social_auth\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ImmutableConfig $social_auth_config) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->socialAuthConfig = $social_auth_config;
}