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.
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 --
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.
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(),
];
}