contacts_events-8.x-1.x-dev/modules/teams/contacts_events_teams.routing.yml

modules/teams/contacts_events_teams.routing.yml
contacts_events_teams.summary:
  path: '/event/{contacts_event}/teams'
  defaults:
    _controller: '\Drupal\contacts_events_teams\Controller\TeamSummaryController::buildPage'
    _title: 'Teams summary'
  requirements:
    _permission: 'manage contacts events teams'
    _contacts_events_teams: 'TRUE'
  options:
    _admin_route: 'TRUE'
    parameters:
      contacts_event:
        type: entity:contacts_event

contacts_events_teams.application_flow:
  path: '/teams/{contacts_ticket}/{step}'
  defaults:
    _controller: '\Drupal\contacts_events_teams\Controller\TeamApplicationController::apply'
    _title: 'Apply for team'
    step: null
  requirements:
    _custom_access: '\Drupal\contacts_events_teams\Controller\TeamApplicationController::accessApplication'
  options:
    parameters:
      contacts_ticket:
        type: entity:contacts_ticket

contacts_events_teams.my_teams:
  path: '/user/{user}/events/teams'
  defaults:
    _controller: '\Drupal\contacts_events_teams\Controller\TeamApplicationController::myTeams'
    _title: 'My team applications'
  requirements:
    _entity_access: 'user.dashboard'
  options:
    parameters:
      user:
        type: entity:user

contacts_events_teams.teams_i_lead:
  path: '/user/{user}/events/teams-i-lead'
  defaults:
    _controller: '\Drupal\contacts_events_teams\Controller\TeamSummaryController::myTeams'
    _title: 'Teams I lead'
  requirements:
    _entity_access: 'user.dashboard'
  options:
    parameters:
      user:
        type: entity:user

contacts_events_teams.team_emails:
  path: '/admin/config/system/team-emails'
  defaults:
    _title: 'Team emails'
    _form: 'Drupal\contacts_events_teams\Form\TeamEmailsForm'
  requirements:
    _permission: 'manage contacts events teams'

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc