You are here

public function TeamInvitationSubscriber::onDeclined in Apigee Edge 8

Callback for on declined event.

Parameters

\Drupal\apigee_edge_teams\Event\TeamInvitationEventInterface $event: The event.

File

modules/apigee_edge_teams/tests/modules/apigee_edge_teams_invitation_test/src/EventSubscriber/TeamInvitationSubscriber.php, line 61

Class

TeamInvitationSubscriber
Defines a subscriber for team_invitation events.

Namespace

Drupal\apigee_edge_teams_invitation_test\EventSubscriber

Code

public function onDeclined(TeamInvitationEventInterface $event) {
  $team_invitation = $event
    ->getTeamInvitation();
  $team_invitation
    ->setLabel("DECLINED")
    ->save();
}