public function InviteList::getOperations in Invite 8
Get operations links like withdraw and resend invitation.
Parameters
int $invitation_id: Invite entity id (invite id).
Return value
array Array of withdraw and resend links.
1 call to InviteList::getOperations()
- InviteList::view in src/
Controller/ InviteList.php  - Returns the active user list output.
 
File
- src/
Controller/ InviteList.php, line 122  
Class
- InviteList
 - Active user list controller.
 
Namespace
Drupal\invite\ControllerCode
public function getOperations($invitation_id) {
  $links[] = [
    'title' => $this
      ->t('Withdraw'),
    'url' => Url::fromRoute('invite.invite_withdraw_form', [
      'invite' => $invitation_id,
    ]),
  ];
  $links[] = [
    'title' => $this
      ->t('Resend'),
    'url' => Url::fromRoute('invite.invite_resend_form', [
      'invite' => $invitation_id,
    ]),
  ];
  return $links;
}