You are here

public function InviteList::__construct in Invite 8

Constructs a new InviteList object.

Parameters

\Drupal\Core\Database\Connection $database: Connection database.

File

src/Controller/InviteList.php, line 36

Class

InviteList
Active user list controller.

Namespace

Drupal\invite\Controller

Code

public function __construct(Connection $database) {
  $this->database = $database;
  $this->inviteStatus = [
    InviteConstants::INVITE_VALID => $this
      ->t('Active'),
    InviteConstants::INVITE_WITHDRAWN => $this
      ->t('Withdrawn'),
    InviteConstants::INVITE_USED => $this
      ->t('Used'),
    InviteConstants::INVITE_EXPIRED => $this
      ->t('Expired'),
  ];
}