How to specify field to show when using Entity reference type field

I'm using Drupal 8

I have a 'race' (as running race) content type 
I want the editor to be able to list all the members (user entity) who will be in the race.
I want to be able to search by full name.

I've added the full name field to the user entity, ie Joe Blogs. (User name is Jbogs).

I've created a field with an  Entity reference type to the user entity.
It's using a reference type View: 'filter by an entity reference view', which is using a view which shows the user name and full name

Upgrade 8.9 to 9 error: service "menu.active_trail" has a dependency on a non-existent service "entity.query"

When I try to upgrade an existent site that was upgrade from drupal 8.5 to 8.9 with no problem, but from drupal 8.9 to 9 or 9.1 return this error: 

In CheckExceptionOnInvalidReferenceBehaviorPass.php line 86:
The service "menu.active_trail" has a dependency on a non-existent service "entity.query".

Searching I found a lot of contrib modules with cause similar error of dependency, but nothing about the menu.active_trail that is a core service.

What can I check or do to solve this dependency?

COVID-19 Clinical Trials Canada

Covid Trials Canada

COVID TRIALS CANADA is:

Sectors: 
Healthcare

missing css (flash of unstyled conten) after installation drupal 8.8

Hello I just installed drupal 8.8 on my server, everything looked fine, but in  every page where I go, the css files  are not loaded.
and the browsers (I used 3 of them) return the error "flash of unstyled content".
What's wrong?
Thanks

Landing page after profile installation

Hello,

i am creating a installation profile in Drupal 8 and is going great but when i finish my installation i endup always on the user profile /user/1 . I want to land on a specific node with some static content. so what i think is that this node should be created during the installation and then in the end we should be redirected to it.

How can i do this ? Some help here.

Thanks

How to check if field exists for entityTypeManager->loadByProperties?

Hi,

I have this code:

$data = Drupal::entityTypeManager()
  ->getStorage('node')
  ->loadByProperties([
    'type'      => $filter_type,
    $filter_key => $node->id()
  ]);

where $filter_key is definded before depending on a situation and basically is some custom field name. When this field does not exist - Drupal crashes with this query.

Question: how can I properly check if this field exist, before making this query?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x