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

THIS FORUM IS NOT FOR "What module..." or module support questions-- it's for module development and code related questions.

The module development and code questions forum is intended to aid those who are developing modules or writing code for Drupal.

Please note that this forum is also not intended for "Is there a module that does..." or "I need help with module x..." questions. It's also not a place to ask developers to write your code for you. Please respect this.

Please do not post general discussions intended to target module developers. If the question you have isn't specifically related to writing a drupal module, please post it in a more appropriate forum.

  • If you you have drupal installed already and are seeking a module that does a specific task, have a question about a specific module and what it does or if it will fit your use case, please place your questions in the Post installation forum.
  • If you have a problem or question about a specific module, you should create an issue in the module's issue queue (after checking for an existing issue first).
  • If you don't have drupal installed yet, please place your questions in the Before you start forum.

autoload classes in modules

I'm using a module which reuse classes from easyrdf module, but since easyrdf is not included in core anymore I'm running into problems, because my module can't find used classes.

my solution is to add

"require": {

in the composer.json of my web/modules/contrib/my-module context.

openssl_x509_fingerprint doesn't work


I have created a Drupal 8 custom module, which uses openssl_x509_fingerprint to generate the thumbprint of certificate which is uploaded in the form. But, openssl_x509_fingerprint fails with the following error

How to limit access to a page in the path of the user to the current user ?

I created a page in a custom module. I want only the current user to access this page on their behalf.

For example, I am user ID 51. If I go to :


I can see this page.

If I go to another user :


I must have an error 403 access denied.

Here is my full module :

How to do this ?

Selective config export via Drush?

I'm currently exporting selective portions of the config from my dev system into the config folder of some custom modules I'm developing for my new site, these provide bespoke content types based on bespoke field types.

Add button to a content type

Hi everyone!

I'm trying to add a button on a content type, I would like for all types of that particular type to have a button in that view to modify, edit or delete that node.



Subscribe with RSS Subscribe to RSS - Module Development and Code Questions