protected function DeveloperAppKeysController::getAppKeys in Apigee Edge 8
Get app credentials by app object.
2 calls to DeveloperAppKeysController::getAppKeys()
- DeveloperAppKeysController::developerAppKeys in src/
Controller/ DeveloperAppKeysController.php - Returns app credentials.
- TeamAppKeysController::teamAppKeys in modules/
apigee_edge_teams/ src/ Controller/ TeamAppKeysController.php - Returns app credentials.
File
- src/
Controller/ DeveloperAppKeysController.php, line 85
Class
- DeveloperAppKeysController
- Controller for the developer app credentials.
Namespace
Drupal\apigee_edge\ControllerCode
protected function getAppKeys($app) {
$keys = [];
if ($credentials = $app
->getCredentials()) {
foreach ($credentials as $item) {
$keys[] = [
$item
->getConsumerKey(),
$item
->getConsumerSecret(),
];
}
}
return $keys;
}