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.

Module array output which fails validation when loaded into new variable

multiple

I am trying to understand the code for a contributed module.  A controller query generates the following print_r output from a loadMultiple statement on the query output.

Syncing Commerce product data via webhooks — architecture feedback?

I needed to sync Commerce product data to an external service and tried the API client approach first — query Drupal's entity system from outside. It broke between stores because every store has different field configurations, entity references, and content types. An API client that works for one store fails on the next.

PHPUnit testing within multisite setups, its posible?

I have a problem:

I want to run PHP unit tests that run on all Multisite sites. But when I run the tests on site “B,” everything uses the default site (“A”) as the database.

Does anyone have an example of how to configure this? Or is it not possible?

Rate limit (Drupal 11)

I have created an API endpoint in Drupal by configuring a View to fetch audit logs (Drupal 11).

By default, Drupal these APIs do not have built-in rate limiting. In such cases, is rate limiting expected to be configured entirely by the customer and how we can configure these rate limits?

Additionally, is there any documented threshold at which Drupal performance may begin to degrade under high API request volume?

Could you please share any official guidance or best practices regarding rate limiting and performance considerations for Drupal APIs?

why 'drupal/es_filter_analyser-es_filter_analyser'

Sorry for the subject, but I don't how abstract the subject.

First, I made a mistake: I developed a module called “es_filter_analyser” (with classes, namespace, injection, etc.) and when I uploaded it to Drupal.org, I made a typo and it ended up with the machine_name “es_filter_analyse.”

It took me two months to realize my mistake. 

So this morning, I tried to create a new module on drupal.org correctly named “es_filter_analyser,” and I pushed the ISO code to it (modifying the repository in .git/config).

Pages

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