public function TeamInvitationSubscriber::onAccepted in Apigee Edge 8
Same name in this branch
- 8 modules/apigee_edge_teams/src/EventSubscriber/TeamInvitationSubscriber.php \Drupal\apigee_edge_teams\EventSubscriber\TeamInvitationSubscriber::onAccepted()
- 8 modules/apigee_edge_teams/tests/modules/apigee_edge_teams_invitation_test/src/EventSubscriber/TeamInvitationSubscriber.php \Drupal\apigee_edge_teams_invitation_test\EventSubscriber\TeamInvitationSubscriber::onAccepted()
Callback for on accepted 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 73
Class
- TeamInvitationSubscriber
- Defines a subscriber for team_invitation events.
Namespace
Drupal\apigee_edge_teams_invitation_test\EventSubscriberCode
public function onAccepted(TeamInvitationEventInterface $event) {
$team_invitation = $event
->getTeamInvitation();
$team_invitation
->setLabel("ACCEPTED")
->save();
}