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

How to retrieve the view mode for media image entities?

Hi,

I would like to create a filed formatter plugin and I can't get the view mode for media image entities.

What is the procedure for retrieving a list of view mode options?

[Advice] Adding Image ALT to Multiple Images on Multiple Nodes

Hey Devs,

I've been tasked with adding an alt to all images of a certain content type.

Each node from the content type may consider 1 or more images.
For now, I have to add the title of the node as the alt for each image.

Proposed Solution:

Drupal 10 ou 9...ou 8?

Friends, in Drupal 10 I am suffering much more than expected to be able to do what I did in Drupal 7.
I know that Drupal has changed a lot since version 8.
The question is: should I have installed Drupal 9 because I will have less problems with instabilities and module incompatibilities? or follow on Drupal 10?
What is the opinion of expert friends?
Thanks!

Run Rules Component programmatically

Hello friends.
First of all, I want to thank Jay Friendly (Jaypan) and Andrey Vitushkin (wombatbuddy) for their great attention and willingness to always help. Thanks!!
I want to let you know that I solved the CRONTAB issue using the Ultimate Cron module suggested by Jaypan (I don't know if it's the best way, but it's working) and I ended up giving up using the super useful Rules module with its triggers. I'm creating "by hand" my needs through hooks.

How to get Xdebug, Sublime Text 4 and Lando working?

Has anyone managed to get Xdebug and Sublime Text 4 working together in Lando?

There's https://docs.lando.dev/guides/lando-phpstorm.html and a similar solution on how to get it working with Sublime Text 4 and SublimeTextXdebug would be awesome.

Workaround to make a Drupal module compatible with D9 and D10 together

The Drupal 10 release, as described, is mostly about deprecations and removing old code. So it's pretty easy to port your modules to Drupal 10, they said!

But actually - not!

Together with deprecations, we have some libraries updated to the new major versions too, and this can bring you little unexpected surprises when you try to make your module compatible with both Drupal 9 and 10 versions together.

Pages

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