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

simple table in drupal 8

I am converting code from html5 to drupal 8. I have code in html that displays a simple table with set values. Here is the table:

Label - Number Key:

Clarification of testing options

Hi there,

I am an experienced test manager but completely new to Drupal as a new company uses it and I am trying to get my head around the testing options. Please forgive my ignorance if my questions don't make sense or is just dumb.

I can see that Drupal 8 makes use of PHPUnit and the documentation talks about the base classes (unit, kernel, browser, webdriver) that can be used to test different instances of Drupal instances at different levels. This all sounds great and I'm sure I shall be using some of it.

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.


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