You are here

public function AppCredentialEventSubscriber::onAddProduct in Apigee Edge 8

Responds to add product events.

Parameters

\Drupal\apigee_edge\Event\AppCredentialAddApiProductEvent $event: The app credential add product event.

File

modules/apigee_edge_actions/src/EventSubscriber/AppCredentialEventSubscriber.php, line 95

Class

AppCredentialEventSubscriber
Events for an API Product being added to an app already exist.

Namespace

Drupal\apigee_edge_actions\EventSubscriber

Code

public function onAddProduct(AppCredentialAddApiProductEvent $event) {
  $this
    ->dispatchRulesEvent('apigee_edge_actions_entity_add_product:developer_app', $event, $event
    ->getNewProducts());
}