This is the only place I use this constant. The reason for using a PHP global const for this is to have it defined near the top of the file for easy spotting and replacement. So having it as a value inside the function is not an option.
Hello there! I am trying to get used to the new way drupal 8/9 does things (I am an avid d7 developer), but having trouble finding proper documentation.
So I am building an invoicing system for a client, and I have two routes setup in my invoicing.routing.yml file, as shown below
Hi, I have created a small module to display an "Agree to Terms" link in the Drupal Commerce shopping tunnel.
This link displays the store's condition page.
I want to display the rendered store entity instead of the conditions page. How to do this ?
I created in my type of store, a display named "Terms and conditions". I want to make this display in a modal window when the user clicks on the link.