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 ?

check drupal 9 module compatibility programatically

Hello
I want to test Drupal 9 and upgrade my sites.

I have a lot of modules in a multisite, and I have to check if them have Drupal 9 compatibility.

It is going to take a looong time.
Is there a way to check the Drupal 9 compability of each of the installed modules programatically (either enabled or disabled)?

Or maybe with a command line adding an option in

drush pml --option-to-show-drupal(x)-compatibility

(x) = v9 v10 ... vN

If there is not an option like this would be great for future versions

Thank you

Regards

Migration to the Drupal 8 multisite for Alutech Security

Migration from Drupal 7 to a Drupal 8 multisite

Our long-term client - Alutech United Inc - came to us with an inquiry to migrate their Drupal 7 website to Drupal 8 within the shortest period possible. No design changes were needed. As the most advantageous solution, we offered to migrate the existing Drupal 7 website into the Drupal 8 multisite system. 

Sectors: 
Small business

token date shows day, date, and time when field is set to date only

drupal 8.9.1

token 8.x-1.7

i have a field of type  "date only" 

on my page this field shows exactly what i expect   mm/dd/yyyy

i have a view and have added the fields as hidden and then used global custom text to show what i need. 

when i use the token for the date field {{ field_date_work }}  i get "day of week, mm/dd/yyyy - 12:00"

example : "Mon, 07/13/2020 - 12:00" 

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x