tmgmt_content.routing.yml

sources/content/tmgmt_content.routing.yml
2 string references to YAML keys in tmgmt_content.routing.yml
ContentEntitySource::getPreviewUrl in sources/content/src/Plugin/tmgmt/Source/ContentEntitySource.php
Returns preview url if preview is supported.
ContentTmgmtEntitySourceUiTest::testEntitySourcePreview in sources/content/tests/src/Functional/ContentTmgmtEntitySourceUiTest.php
Test content entity source preview.

File

sources/content/tmgmt_content.routing.yml
View source
  1. tmgmt_content.job_item_preview:
  2. path: '/tmgmt/content/preview/{tmgmt_job_item}/{view_mode}'
  3. defaults:
  4. _controller: '\Drupal\tmgmt_content\Controller\ContentTranslationPreviewController::preview'
  5. _title_callback: '\Drupal\tmgmt_content\Controller\ContentTranslationPreviewController::title'
  6. view_mode: 'full'
  7. requirements:
  8. _key_access_check: 'TRUE'