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

How do i change a project status from usupported to supported?

I recently created a drupal module project and messed up the tags and branches on my first attempt to upload. I flagged the first release I had created as unsupported in order to hide it. I then created a new release (new branch, new tag and version number upgraded) that I want to show as supported. However when I install it  and check for udpates it shows as unsupported.

Link to image

Using multiple dependent select on Drupal 8

Hello All

 Im building a custom form with 3 dropdowns, cars brand, model and version, i need to select this by model and version.

 For example:

 Brand: Toyota, then display the select Hilux, and Year 2020.

 I have made something like this but it just work on first dropdown the second one doesnt update on change:

Xdebug sometimes does not work until cache clear

This might not be fully related to Drupal... but... I'm using the Drupal VM vagrant environment to develop with Drupal. I use xdebug a lot and sometimes (very rarely) xdebug refuses to trigger when I add a breakpoint in code. So I'll keep refreshing the site page in the browser to trigger xdebug but nothing happens, however, if I then clear the Drupal site cache (using drush cr on the command line) then xdebug immediatly works as expected on the next page refresh.

User Entity - Custom Validation Constraint

Hi, I've created a new field "nickname" in user account settings. I want to use custom validation constraint (https://www.drupal.org/docs/8/api/entity-api/entity-validation-api/providing-a-custom-validation-constraint) to make this field unique but I don't know what hook to use to add the constraint. Do you have any idea or alternative? Thanks!

Creating a custom MediaSource plugin which works with the media library

Hi all,

I have created a media source plugin by following this tutorial -> https://www.drupal.org/docs/8/core/modules/media/creating-a-custom-media...

However as I suspected it doesn't fully work with the media library module. The library shows uploaded media but it doesn't allow one to add new media.

Upon investigation is seems I may need to create the form by extending the class

Trying to set the Image title attribute in D8

I'm trying to set the title attribute of an image (multiple) field using hook node presave. I will ultimately be using the filename without the extension but for now I'd just like to get the title to set then I should be right to build that variable.

Pages

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