Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Is it possible to capture IDs of clicked-on inputs using logic from a behaviors file when the inputs are used in AJAX?
At a high level, I'd like to capture the IDs of elements when they're clicked-on. It looks like I can do it individually when using a mousedown handler with the respective IDs, but I want it to be more abstract in the sense of having a dynamic way of not needing to reference the ID in the code if possible.
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 --