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

Drupal 10.5: How does one modify where a respective AJAX button's progress indicator gets displayed?

I'm working on a custom module and one of the fields it has on its settings page is an AJAX button configured as follows:

Is there any Drupal core API to expose View filter metadata (time, pagination, etc.)?

I have created a View that exposes an API endpoint for audit logs. In this View, I configured several exposed filters such as time range and pagination.

My question is: Does Drupal core provide any built-in API or endpoint that returns metadata about these filters (for example which filters are available, filter names, allowed parameters, etc.)?

I want to know if I can call a Drupal API that gives information about all exposed filters for a View.

Thanks!

Where to find BaseFieldDefinition:: Properties

I am playing with code to define base fields in a custom entity created in a module.  For example...

Updating language for existing content

Hi friends,

I have multilingual site. And there are content originally created in 'es' (Spanish) language. Now, we have to change all those existing content to 'en'. In my custom drush command, tried below thing but now working --

After loading the node object trying to change it like this --

$node->set('langcode', 'en');
$node->save();

It is giving this error --

Integrating a Jalali (Shamesi) Calendar Datepicker into Drupal Commerce Marketplace Vendor Forms

Hello Drupal Commerce community,

I am developing a multi-vendor marketplace for a client in Iran and Afghanistan, where the official calendar is Jalali (Solar Hijri / Shamsi). I am using Drupal Commerce with the Commerce Marketplace module as the foundation.

How to Pass Dynamic Data Between Drupal Modules Safely?

Hi everyone,

I am developing a custom Drupal module and I need to pass data dynamically from one module to another. For example, Module A generates some user-related data, and Module B needs to use it for custom processing.

Here’s a simplified scenario:

// Module A
function module_a_generate_data($uid) {
$user = \Drupal\user\Entity\User::load($uid);
return [
'username' => $user->getAccountName(),
'roles' => $user->getRoles(),
];
}

Pages

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