You are here

public function TeamInvitationTitleProvider::resendTitle in Apigee Edge 8

Provides the resend title for a team_invitation.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

\Drupal\Core\Entity\EntityInterface $_entity: (optional) An entity, passed in directly from the request attributes.

Return value

string|null The title for the entity resend page.

Overrides TeamInvitationTitleProviderInterface::resendTitle

File

modules/apigee_edge_teams/src/Entity/TeamInvitationTitleProvider.php, line 53

Class

TeamInvitationTitleProvider
Title provider for team_invitation.

Namespace

Drupal\apigee_edge_teams\Entity

Code

public function resendTitle(RouteMatchInterface $route_match, EntityInterface $_entity = NULL) {
  if ($entity = $this
    ->doGetEntity($route_match, $_entity)) {
    return $this
      ->t('Resend %label', [
      '%label' => $entity
        ->label(),
    ]);
  }
}