This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Drupal 10 module settings: how to clear module cached data on save settings?

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:

"Unexpected Error" on Drupal 10 with very few code changes

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.

Drupal 10 Form Use input values show in getValues but Ajax generated values do not.

I have a custom module which implements a form using the Form API buildForm.

The form contains fields for user input and field which contain values calculated from user input fields via Ajax callbacks.

The use can enter values into the fields and the calculated field are correctly calculated and display appropriately in the form.

Drupal config property values architecture design

Hi,

For my current site I need some help in understanding best approach or Drupal standards.

Checkboxes and lists with form #states API.

Hello.

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.

How to render a table?

Hello,

I am learning module development - rendering a table

I expected to see two rows of data but it displays only 1.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions