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

ServiceProvider container parameters

Hello,

I'm develop a module make create a few services dinamically in a ServiceProvider (src/<MyModuleName>ServiceProvider.php). It's works correcly but I have a question.

My ServiceProvide needs a parameters to define de services to add to container and I have it in my my-module.service.yml:

Read-only boolean field

Hi, with the key 'disable', I make the checkbox (boolean) field read-only. This field is updated to True or False programmatically,
I noticed that on saving, the field is not updated.

Researching I read that the key 'readonly' is used, I tried but with the boolean it does not work.

The "" entity type did not specify a "add" form class.

Dear Fellows,

I am facing the following fatal error due to unknown reason:

Searchable Drop down

Hey,

Need some help or guidelines , we have a huge list of drop down and kind of difficult for the users to scroll so wanted to check how we can create a searchable drop down. 

I did search the forums but could not find anything so reaching out to you to help me in this.

for now I tried POC with the form Type "select".

And suggestions are appreciated.

How to set the order of elements in the revision_information section of the advanced settings sidebar in the node edit form?

I've been trying to move the moderation_state field into the sidebar below the revision log message. I've successfully managed to move it into the revision_information section so that they are together by doing

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:

Pages

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