I created a code to automatically flag nodes and comments. When I put only the code to flag the nodes, it works. But when I add the code to flag the comments it doesn't work anymore.
I have created a small module (Drupal 8) 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.
Drupal is capable of doing something, that I want to leverage/exploit.
But I can't figure out how to access this component in an isolated manner, everything seems to be deeply entangled, and every class I find that does what I need, requires 5 container classes and injections and dependencies...
So I'm out here asking to see if someone can help, before I need to literally read thru the entire code base to figure it out.
I'm using HOOK_form_alter to store a string for a taxonomy entity. Because I want to be graphical, I'm using the Form API radios type combined with special CSS for my customers to choose which color they want.