You are here

public function AppCredentialAddApiProductEvent::__construct in Apigee Edge 8

AppCredentialAddApiProductEvent constructor.

Parameters

string $app_type: Either company or developer.

string $owner_id: Company name or developer id (email) depending on the appType.

string $app_name: Name of the app.

\Apigee\Edge\Api\Management\Entity\AppCredentialInterface $credential: The app credential that has been created.

array $new_products: Array of API product names that has just been added to the key.

Overrides AbstractAppCredentialEvent::__construct

File

src/Event/AppCredentialAddApiProductEvent.php, line 58

Class

AppCredentialAddApiProductEvent
Triggered when new API products have been added to an app credential.

Namespace

Drupal\apigee_edge\Event

Code

public function __construct(string $app_type, string $owner_id, string $app_name, AppCredentialInterface $credential, array $new_products) {
  parent::__construct($app_type, $owner_id, $app_name, $credential);
  $this->newProducts = $new_products;
}