This forum is for module development and code related questions, not general module support. For general support, use the Post installation 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": {
        "easyrdf/easyrdf":"^0.9"
}

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

openssl_x509_fingerprint doesn't work

Hi

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 :

/user/51/tasks

I can see this page.

If I go to another user :

/user/78/tasks

I must have an error 403 access denied.

Here is my full module :

https://git.drupalcode.org/sandbox/zenimagine-3076032

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.

Thanks!

How to post image including title and body for an Article Content Type using postman

Hi,
I am new to Drupal.

I want to post image for my article type.
I am able to post title and summary.

But Unable to Post image with it using postman.

URL :

http://obp.dev.drupal.com/drupal8/web/entity/node?_format=hal_json

POST:   

Pages

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