You are here

public static function TeamInactiveStatusSubscriber::getDisabledRoutes in Apigee Edge 8

Returns an array of route names for which the warning message should be displayed.

Return value

array An array of route names.

3 calls to TeamInactiveStatusSubscriber::getDisabledRoutes()
apigee_edge_teams_entity_operation_alter in modules/apigee_edge_teams/apigee_edge_teams.module
Implements hook_entity_operation_alter().
apigee_edge_teams_preprocess in modules/apigee_edge_teams/apigee_edge_teams.module
Implements hook_preprocess().
TeamInactiveStatusSubscriber::onRespond in modules/apigee_edge_teams/src/EventSubscriber/TeamInactiveStatusSubscriber.php
Display an error message on inactive team routes.

File

modules/apigee_edge_teams/src/EventSubscriber/TeamInactiveStatusSubscriber.php, line 140

Class

TeamInactiveStatusSubscriber
Displays an error message on team pages if team is inactive.

Namespace

Drupal\apigee_edge_teams\EventSubscriber

Code

public static function getDisabledRoutes() : array {
  return [
    // Team.
    'entity.team.edit_form',
    'entity.team.delete_form',
    // Team app.
    'entity.team_app.add_form_for_team',
    'entity.team_app.edit_form',
    'entity.team_app.delete_form',
    'entity.team_app.analytics',
    // Team member.
    'entity.team.add_members',
    'entity.team.member.edit',
    'entity.team.member.remove',
    // Team invitation.
    'entity.team_invitation.resend_form',
    'entity.team_invitation.delete_form',
  ];
}