class AppCredentialGenerateEvent in Apigee Edge 8
Triggered when a new credential has been generated or for an app.
When a new app key has been _generated_ you can access API products on the credential.
Hierarchy
- class \Drupal\apigee_edge\Event\AbstractAppCredentialEvent extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\apigee_edge\Event\AppCredentialGenerateEvent
Expanded class hierarchy of AppCredentialGenerateEvent
4 files declare their use of AppCredentialGenerateEvent
- ApiProductEntityAccessCacheReset.php in src/
EventSubscriber/ ApiProductEntityAccessCacheReset.php - AppCredentialControllerBase.php in src/
Entity/ Controller/ AppCredentialControllerBase.php - OverrideAppKeysOnGenerate.php in tests/
modules/ apigee_edge_test_app_keys/ src/ EventSubscriber/ OverrideAppKeysOnGenerate.php - TeamMemberApiProductAccessHandlerCacheReset.php in modules/
apigee_edge_teams/ src/ EventSubscriber/ TeamMemberApiProductAccessHandlerCacheReset.php
File
- src/
Event/ AppCredentialGenerateEvent.php, line 29
Namespace
Drupal\apigee_edge\EventView source
class AppCredentialGenerateEvent extends AbstractAppCredentialEvent {
/**
* Event id.
*
* @var string
*/
const EVENT_NAME = 'apigee_edge.app_credential.generate';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractAppCredentialEvent:: |
private | property | Name of the app. | |
AbstractAppCredentialEvent:: |
private | property | Type of the app. | |
AbstractAppCredentialEvent:: |
private | property | App credential. | |
AbstractAppCredentialEvent:: |
private | property | ID of the app owner. | |
AbstractAppCredentialEvent:: |
constant | Developer app type. | ||
AbstractAppCredentialEvent:: |
constant | Team app type. | ||
AbstractAppCredentialEvent:: |
public | function | Returns the name of the app. | |
AbstractAppCredentialEvent:: |
public | function | Returns the app type which is either "company" or "developer". | |
AbstractAppCredentialEvent:: |
public | function | Returns the app credential. | |
AbstractAppCredentialEvent:: |
public | function | Returns owner id which is either a company name or a developer id (email). | |
AbstractAppCredentialEvent:: |
public | function | AppCredentialGenerateEvent constructor. | 2 |
AppCredentialGenerateEvent:: |
constant | Event id. |