Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I have a problem with the Drupal cache. The cache remembers session and cookie values. Everything works fine if I am logged into the backend or if I turn off the Drupal cache completely. Is it possible to use php cookies and they will not be cached if I am not a logged in user? The problem is with Drupal 8.
I have some code that runs on an admin page controller. So if I do $route_match = \Drupal::routeMatch(); then it relates to that admin page. However, I want to Temporarily change the value of \Drupal::routeMatch() so that it uses the path of a node (for example node/1).
With Drupal 7 I could simply change $_GET['q'] = 'node/1', for example, do my logic and switch it back to the original path afterwards.
I created a module for my marketplace (several stores and owners). It displays a required checkbox, in the purchase funnel. With a link to the general conditions of sale which are rendered in a modal window.
This module works perfectly.
MY PROBLEM :
I no longer want to display the CGV page in the modal window.
I want to display the rendered entity of the store with the CGV display mode.