I am developing a module with a block where I create a selection using the Client-side Hierarchical Select module.
It works so far, the selected values are specified in the path as intended and I can access them in the controller.
I am using webforms in which I have created a custom form and a custom module where I make various modifications. My client asked whether is possible while some users to be able to test the form (they belong to a specific role) while the form is closed. What I tried so far is these two things:
In my custom module hook_form_alter I insert the following code:
function customvisit_form_alter(&$form, FormStateInterface $form_state, $form_id) {
I'm creating a new module to handle searching, I have other modules like this. But when adding the new module I have run into an issue where the others have not. When first installing the module the content appears and then maybe after 20 minutes or so it disappears with the 'hook_theme not found' error. Clearing the cache brings the content back for another 20 or so minutes, rinse and repeat.