private function Oauth2ClientPluginBase::checkKeyDefined in OAuth2 Client 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/Oauth2Client/Oauth2ClientPluginBase.php \Drupal\oauth2_client\Plugin\Oauth2Client\Oauth2ClientPluginBase::checkKeyDefined()
Check that a key is defined when requested. Throw an exception if not.
Parameters
string $key: The key to check.
Throws
\Drupal\oauth2_client\Exception\Oauth2ClientPluginMissingKeyException Thrown if the key being checked is not defined.
11 calls to Oauth2ClientPluginBase::checkKeyDefined()
- Oauth2ClientPluginBase::getAuthorizationUri in src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php - Retrieves the authorization_uri of the OAuth2 server.
- Oauth2ClientPluginBase::getClientId in src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php - Retrieves the client_id of the OAuth2 server.
- Oauth2ClientPluginBase::getClientSecret in src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php - Retrieves the client_secret of the OAuth2 server.
- Oauth2ClientPluginBase::getGrantType in src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php - Retrieves the grant type of the plugin.
- Oauth2ClientPluginBase::getId in src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php - Retrieves the id of the OAuth2 Client plugin.
File
- src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php, line 187
Class
- Oauth2ClientPluginBase
- Base class for Oauth2Client plugins.
Namespace
Drupal\oauth2_client\Plugin\Oauth2ClientCode
private function checkKeyDefined($key) {
if (!isset($this->pluginDefinition[$key])) {
throw new Oauth2ClientPluginMissingKeyException($key);
}
}