private function Oauth2ClientPluginBase::checkKeyDefined 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::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.
6 calls to Oauth2ClientPluginBase::checkKeyDefined()
- Oauth2ClientPluginBase::getAuthorizationUri in src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php - Retrieves the authorization_uri 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.
- Oauth2ClientPluginBase::getName in src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php - Retrieves the human-readable name of the Oauth2 Client plugin.
- Oauth2ClientPluginBase::getResourceUri in src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php - Retrieves the resource_uri of the OAuth2 server.
File
- src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php, line 404
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);
}
}