Why, the references to the entities do not disappear when the references are deleted ?

I have a site with Drupal 8.8.4

I created a type of paragraph with an "Entity reference" field which refers to the products and a "Date range" field :

Only local images are allowed.

https://i.stack.imgur.com/LhHDB.png

I created a type of store with "Entity reference revisions" field which refers to my previous paragraph :

Drupal 8.8.3 Layout builder choose block not shown

Hi Tried to  use the layout builder, it has worked before on an older drupal 8.x version but when I try it now:

1 open a conten type
2 enable layout builder and save
3 select layout builder 
Result a page is shown with "+ add a section" when clicking here a short busy symbol apears and nothing shows up (no choose block at all)

When lookin at the console (google chrome browser F12 and then the console tab) I see an error for every click I made and this error says: Failed to load resource ... responded with status 500
The path it tries to follow :

Modules

Hello.

I created a multisite installation.

I read that in drupal (I guess) 8.8.0 or above I can install specific modules for specific site, adding the module directory in the /sites/newsite/modules/newmodule

I downloaded a different module in 2 sites in the Drupal 8 web user interface, and the modules are all installed in web/modules directory regardless of the site.

The modules are only installed in the /sites/newsite/modules/newmodule when are installed via command line?

Thank you.

Regards.

Download contributed modules and themes using Composer

I'm just testing drupal 8.8.4 I have installed it with composer.

I created a multisite installation.

I like the idea of composer controlling the dependencies.

I can easily install a contrib module and a specific version of a module.

I can define the directories to which modules, themes, libraries, etc. should be downloaded.

like /sites/sitename/modules directory for specific site of a module.

But is it possible to do these modifications in composer.json if I use drupal/recommended-project installation type?

Thank you.

Run AJAX cascaded

I am new here, just started to write a module. I am facing a issue to calculate a field and then calculate another field. Here in example, calculate amount in a line item, and on the field amount changed, calculate the total value.

Here is the total value field.

 
    $form['total']['#prefix'] = '<div id="total_value">';
    $form['total']['#suffix'] = '</div>';
    $form['total']['#attributes']['readonly'] = TRUE;

This is the field definition

How to load entities with Null value in Drupal 8

The following fails with an invalidqueryexception

\Drupal::entityTypeManager()->getStorage('foo_module_division')->loadByProperties(['enabled'=>TRUE, 'parent_code'=> NULL]).

How else do I specify that I want to load entities whose parent_code field is NULL

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x