You are here

service router.amp_context in Accelerated Mobile Pages (AMP) 8.2

Same name and namespace in other branches
  1. 8.3 amp.services.yml \router.amp_context
  2. 8 amp.services.yml \router.amp_context

Class

Drupal\amp\Routing\AmpContext
4 string references to router.amp_context
AmpViewModeTest::testAmpViewMode in tests/src/Functional/AmpViewModeTest.php
Test the AMP view mode.
amp_adsense_preprocess_block in modules/amp_adsense/amp_adsense.module
Implements hook_preprocess_block().
amp_entity_view_mode_alter in ./amp.module
Implements hook_entity_view_mode_alter().
amp_page_bottom in ./amp.module
Implements hook_page_bottom for page bottom.

File

./amp.services.yml
amp.services.yml

View source
  1. class: Drupal\amp\Routing\AmpContext
  2. arguments:
  3. - '@config.factory'
  4. - '@theme.manager'
  5. - '@amp.entity_type'
  6. - '@current_route_match'
  7. - '@router.admin_context'