consent-8.x-1.0-alpha5/modules/consent_iframe/consent_iframe.routing.yml
modules/consent_iframe/consent_iframe.routing.yml
consent_iframe:
path: 'consent/iframe'
defaults:
_controller: '\Drupal\consent_iframe\Controller\OilConsentIframeController::page'
requirements:
_access: 'TRUE'
# Page Cache does not properly care for the Vary header.
# See also https://www.drupal.org/project/drupal/issues/2972483.
# Until then, the controller manually takes care for a cacheable header.
options:
no_cache: TRUE
consent_iframe.form:
path: 'admin/config/consent/iframe'
defaults:
_form: '\Drupal\consent_iframe\Form\OilConsentIframeForm'
_title: 'Consent iFrame configuration'
requirements:
_permission: 'configure consent'
options:
_admin_route: TRUE
