You are here

class TeamInvitationEvent in Apigee Edge 8

Defines the team_invitation event.

Hierarchy

Expanded class hierarchy of TeamInvitationEvent

2 files declare their use of TeamInvitationEvent
TeamInvitationStorage.php in modules/apigee_edge_teams/src/Entity/Storage/TeamInvitationStorage.php
TeamInvitationSubscriber.php in modules/apigee_edge_teams/tests/modules/apigee_edge_teams_invitation_test/src/EventSubscriber/TeamInvitationSubscriber.php

File

modules/apigee_edge_teams/src/Event/TeamInvitationEvent.php, line 29

Namespace

Drupal\apigee_edge_teams\Event
View source
class TeamInvitationEvent extends Event implements TeamInvitationEventInterface {

  /**
   * The team_invitation entity.
   *
   * @var \Drupal\apigee_edge_teams\Entity\TeamInvitationInterface
   */
  protected $teamInvitation;

  /**
   * TeamInvitationEvent constructor.
   *
   * @param \Drupal\apigee_edge_teams\Entity\TeamInvitationInterface $team_invitation
   *   The team invitation.
   */
  public function __construct(TeamInvitationInterface $team_invitation) {
    $this->teamInvitation = $team_invitation;
  }

  /**
   * {@inheritdoc}
   */
  public function getTeamInvitation() : TeamInvitationInterface {
    return $this->teamInvitation;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TeamInvitationEvent::$teamInvitation protected property The team_invitation entity.
TeamInvitationEvent::getTeamInvitation public function Returns the team_invitation entity. Overrides TeamInvitationEventInterface::getTeamInvitation
TeamInvitationEvent::__construct public function TeamInvitationEvent constructor.