You are here

public function ResourceOwnersCredentialsGrantService::getGrantProvider in OAuth2 Client 8.3

Same name and namespace in other branches
  1. 8.2 src/Service/Grant/ResourceOwnersCredentialsGrantService.php \Drupal\oauth2_client\Service\Grant\ResourceOwnersCredentialsGrantService::getGrantProvider()

Get the league/oauth2 provider.

Parameters

string $pluginId: The plugin ID of an OAuth2 Client plugin.

Return value

\League\OAuth2\Client\Provider\AbstractProvider The requested provider.

Overrides Oauth2ClientGrantServiceInterface::getGrantProvider

File

src/Service/Grant/ResourceOwnersCredentialsGrantService.php, line 43

Class

ResourceOwnersCredentialsGrantService
Handles Authorization Grants for the OAuth2 Client module.

Namespace

Drupal\oauth2_client\Service\Grant

Code

public function getGrantProvider($pluginId) {
  return $this
    ->getProvider($pluginId);
}