You are here

public function EdgeKeyTypeBase::getClientId in Apigee Edge 8

Gets the client ID.

Parameters

\Drupal\key\KeyInterface $key: The key entity.

Return value

string The client ID.

Overrides EdgeKeyTypeInterface::getClientId

1 call to EdgeKeyTypeBase::getClientId()
ApigeeAuthKeyType::getAuthenticationMethod in src/Plugin/KeyType/ApigeeAuthKeyType.php
Gets the authentication method object.

File

src/Plugin/EdgeKeyTypeBase.php, line 150

Class

EdgeKeyTypeBase
Defines a base class for Apigee Edge Key Type plugins.

Namespace

Drupal\apigee_edge\Plugin

Code

public function getClientId(KeyInterface $key) : string {
  return $key
    ->getKeyValues()['client_id'] ?? Oauth::DEFAULT_CLIENT_ID;
}