I'm studying to develop Drupal 10 modules, I created the classic "Hello world" module implementing it with a custom string to display on a specific page.
The value is stored correctly but in the page that should display it I always see the cached value, if I clear the entire Drupal cache I see the real stored value.
In my DefaultController.php I read the value link this:
I am trying to spinup a new site with Drupal 10 and keep getting the following error:
"The website encountered an unexpected error. Please try again later."
Server side is clean, DNS and such is all correct.
First time the only change to a fresh D10 site was to change the name of the site. Everything worked at the end of the day, then next day I get the above error. I reinstalled a fresh instance of D10 because I hadnt made any real changes.
I'm asking for the community's help again because I think there is a bug in drupal core with the form #state API.
Specifically, checkboxes and lists are not activated as required by form #state.
In the case of checkboxes, the requirement asterisk is not added, but required="required" and aria-required="true" attribute are added, but the checkboxes do not become required.
The same is with the lists except that the asterisk is added, but it is not required either.
I have a list, which I use with the checkbox/radio widget, which is the master.