Nevermind. Thank god for ChatGPT. It fixed it and rewrote the whole thing and it works fine now.
Jesus christ this is absurd. So I got some actual help from folks on the Reddit Drupal site and I started over. I now have created a completely green test module use the "drush generate" command. Here is where I am at:
I migrated my side from Drupal 7 to drupal 10. In drupal 7 I used panels with blocks. And build 2 blocks with condition urls' to show the block.
Now in drupal 10 I have a layout for the vocabulary
If I want to show different content in a block by a term, is this possible somehow? Or do I need to add all blocks with condition url's to the lay-out? And then because of the condition in the block, it shows itself like in Drupal 7?
Hi everyone. I am trying to create dependency fields in paragraphs. In Drupal 9.2 i can use hook_field_widget_WIDGET_TYPE_form_alter() but in Drupal > 9.2 i am having some problems....
When i use this hook: hook_field_widget_single_element_WIDGET_TYPE_form_alter that in theory replace hook_field_widget_WIDGET_TYPE_form_alter() i can't access to fields in $element['subform']....