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.
The Captain Tortue Extranet is the working tool of the Captain Tortue fashion consultants, allowing them to organise their workshops, their stocks and their career. This site acts as a gateway to the various external tools of BI, sales, etc essential to their activity.
The objective was to build a multisite in order to ensure coherence between the different countries concerned by Captain Tortoise's activity (5 countries at the time of the build).
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.
If we set the the content authoring editors to include the "Media Library" button then it is very easy to upload and insert images onto nearly any visible entity (custom blocks, articles, etc).
The built-in handling of media library items even lets us align and caption the images.
Awesome.
I know for a fact that, when using various distributions, I could also set my image to be full/three-qtr/half/one-qtr of the container. Whatever they used ended up being in the text editor configuration filter lists I think.