public function Oauth2ClientPluginBase::getGrantType 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::getGrantType()
Retrieves the grant type of the plugin.
Return value
string Possible values:
- authorization_code
- client_credentials
- refresh_token
- resource_owner
Overrides Oauth2ClientPluginInterface::getGrantType
File
- src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php, line 96
Class
- Oauth2ClientPluginBase
- Base class for Oauth2Client plugins.
Namespace
Drupal\oauth2_client\Plugin\Oauth2ClientCode
public function getGrantType() {
$this
->checkKeyDefined('grant_type');
return $this->pluginDefinition['grant_type'];
}