The mailchimp class is not found in my module

The mailchimp class is not found in my module.

I use phpStorm. The project recognize the class ...

The info is found at: https://mailchimp.com/developer/guides/marketing-api-quick-start/

composer require mailchimp/marketing

Base url server:

/home/mysite/vendor/mailchimp/marketing/lib

/home/mysite/vendor/mailchimp/marketing/lib/Api/

Block visibility by role and path in D8?

Hi! Very odd, in D8 there are no options to restrict a block by role or path as we used to have in D7.

All I’m getting is:

  • Data Comparison
  • Data Value
  • Entity is new, etc

No role or by path 🧐

I checked permissions, administrator blocks, all good.

How do we restrict core and custom blocks by role or by path please?

Remove username field from registration form in drupal8

Hi,

Remove username field from registration form, i try with the Email Registration module but my username field is not removed. i want to register the form without the username field.

After Drupal upgrades, need to reinstall external libraries

Hi! I am finding in Drupal 7 and 8, that every time we do an upgrade, I need to reinstall all external libraries via Composer again.

Example modules that ‘loses’ it’s libraries is:

https://www.drupal.org/project/entity_print
https://www.drupal.org/project/stripe_roles

Why could this be happening?

Why is my code for flagging entities not working ?

I created a code to automatically flag entities when they are created or updated.

With this code only the nodes are flagged but it does not work for the other entities.

What is wrong with my code? Why is it not working ?

There is no error in the logs. The flags are of course the right entity.

change header

How can I change the header for product view?  Here is where it is in the code

<div>
<h2>HEADER THAT I WANT TO CHANGE</h2>
</div>

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x