public function EdgeKeyTypeBase::getOrganization in Apigee Edge 8
Gets the API organization.
Parameters
\Drupal\key\KeyInterface $key: The key entity.
Return value
string The API organization.
Overrides EdgeKeyTypeInterface::getOrganization
File
- src/
Plugin/ EdgeKeyTypeBase.php, line 113
Class
- EdgeKeyTypeBase
- Defines a base class for Apigee Edge Key Type plugins.
Namespace
Drupal\apigee_edge\PluginCode
public function getOrganization(KeyInterface $key) : string {
if (!isset($key
->getKeyValues()['organization'])) {
throw new AuthenticationKeyValueMalformedException('organization');
}
return $key
->getKeyValues()['organization'];
}