You are here

analytics.routing.yml in Analytics 8

File

analytics.routing.yml
View source
  1. analytics.settings_form:
  2. path: '/admin/config/services/analytics/settings'
  3. defaults:
  4. _title: 'Analytics settings'
  5. _form: '\Drupal\analytics\Form\AnalyticsSettingsForm'
  6. requirements:
  7. _permission: 'administer analytics'
  8. entity.analytics_service.enable:
  9. path: '/admin/config/services/analytics/{analytics_service}/enable'
  10. defaults:
  11. _controller: '\Drupal\analytics\Controller\AnalyticsController::ajaxOperation'
  12. op: enable
  13. requirements:
  14. _entity_access: analytics_service.enable
  15. _csrf_token: 'TRUE'
  16. entity.analytics_service.disable:
  17. path: '/admin/config/services/analytics/{analytics_service}/disable'
  18. defaults:
  19. _controller: '\Drupal\analytics\Controller\AnalyticsController::ajaxOperation'
  20. op: disable
  21. requirements:
  22. _entity_access: analytics_service.disable
  23. _csrf_token: 'TRUE'