final public function Oauth2ClientPluginBase::__construct in OAuth2 Client 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/Oauth2Client/Oauth2ClientPluginBase.php \Drupal\oauth2_client\Plugin\Oauth2Client\Oauth2ClientPluginBase::__construct()
Constructs a Oauth2ClientPluginBase object.
Parameters
array $configuration: The plugin configuration.
string $plugin_id: The plugin ID.
mixed $plugin_definition: The plugin definitions.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The configuration factory service.
\Drupal\oauth2_client\Service\CredentialProvider $credProvider: Injected credential service.
\Drupal\Core\State\StateInterface $state: Injected state service.
\Drupal\Component\Uuid\UuidInterface $uuid: Injected UUID service.
\Drupal\Core\Messenger\MessengerInterface $messenger: Injected message service.
Overrides PluginBase::__construct
File
- src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php, line 87
Class
- Oauth2ClientPluginBase
- Base class for Oauth2Client plugins.
Namespace
Drupal\oauth2_client\Plugin\Oauth2ClientCode
public final function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $configFactory, CredentialProvider $credProvider, StateInterface $state, UuidInterface $uuid, MessengerInterface $messenger) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->configFactory = $configFactory;
$this->credentialService = $credProvider;
$this->state = $state;
$this->uuid = $uuid;
$this->messenger = $messenger;
$this
->clearCredentials();
$this
->loadConfiguration($configuration);
}