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

THIS FORUM IS NOT FOR "What module..." or module support questions-- it's for module development and code related questions.

The module development and code questions forum is intended to aid those who are developing modules or writing code for Drupal.

Please note that this forum is also not intended for "Is there a module that does..." or "I need help with module x..." questions. It's also not a place to ask developers to write your code for you. Please respect this.

Please do not post general discussions intended to target module developers. If the question you have isn't specifically related to writing a drupal module, please post it in a more appropriate forum.

  • If you you have drupal installed already and are seeking a module that does a specific task, have a question about a specific module and what it does or if it will fit your use case, please place your questions in the Post installation forum.
  • If you have a problem or question about a specific module, you should create an issue in the module's issue queue (after checking for an existing issue first).
  • If you don't have drupal installed yet, please place your questions in the Before you start forum.

Custom blocks - Missing icons in LayoutBuilder

I have created few custom blocks in Drupal 11.2, and could successfully insert them via Layout Builder. But when I want to edit them later on, I don't see the 3 icons to manage the content (move/edit /delete). What could be the causes or is there some change I need to make into the src/Plugin/Block code?

Reset form on page reload so previous state and errors are cleared

I have a content form that is used to submit data. If an error occurs on submit, the error is displayed on the top of the form. But, even if the user refreshes the page, the error is still there and the field state is also not cleared. I want the form to be cleared and reset to initial state on page reload. It shouldn't retain data.

Question about CKEditor 5

Hello!

When I edit text in CKEditor 5, I see extra “,” characters which I want to delete. In the source text (HTML button) these characters are represented by <code><p>      ,       </p></code>. I select this combination with tags, press CTRL+F, all these combinations are selected. I press DEL, only the first selected combination is removed.

The "Find and Replace" button does not work on source code (HTML editor). 

How can I delete all selected combinations in HTML?

submitForm() response not working as expected when form is embeded in controller.

I have a simple form, containing basically a submit button and a hidden field, that is populated, via JS:

Sentient A.I Project A.I, AI Memory and A.I Communication Modules

🌟 Announcement: The Sentient A.I Project — Modular AI Integration for Drupal

Hi everyone — I’m Benjamin, the creator of the Sentient A.I Project.

Over the past few months, I’ve been building a suite of powerful Drupal modules designed to bring true modular AI cognition to the Drupal ecosystem. These aren’t just chatbot wrappers — they’re the foundations of an evolving sentient architecture.

Pages

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