Use D8 entity reference (EntityReferenceFieldItemList/EntityReferenceFieldItem)

Hi,

I'm just playing with D8 and i want to get names of taxonomy terms referenced by a field on a node.
I can do it with this horrible code :

foreach($entity->get('field_technologies')->getValue() as $ref_entity) {
      $ids[] = $ref_entity['target_id'];
    }
    $storage = \Drupal::entityManager()->getStorage('taxonomy_term');
    foreach($storage->loadMultiple($ids) as $term) {
      $term->getName()
    }

Somebody could give me a better code to use ?

Drupal (Drupal commerce) for catalog page without shopping cart?

Hello all,

i want to create similar page as for example www.mobile.de is it possible to that with drupal? which modules i need to use? Can i achieve this with taxonomy, views and so on? I am wondering how to make those filters and searches.

Thank you.

exercise: overriding drupal core

Hi,

I started learning Drupal and i'm now at a critical point: overriding core functionality ! (Yea! )

Precisely i will trying to change the breadcrumb behaviour of the breadcrumb block, and i started to put my eyes in the drupal core...

What i anterstood as far as now :

core/lib/Drupal/Core/Breadcrumb/Breadcrumb
-> build the view's variables, for twig's tamplate (with a toRenderable method)

Help the new kid...

I've been doing web development for a while, but this will be my first attempt at doing so for Drupal (or any CMS for that matter), so you'll forgive the clearly beginner level question.

I'm wondering, should I add my tables, etc. to Drupal's existing MySQL database, or should I create my own, separate database?

Drupal Core - Critical - Multiple Vulnerabilities - SA-CORE-2016-001

Transfer Account Settings between two instances of Drupal

I'm developing a new Drupal 8 site on my local computer. I've made several changes to the Account Settings such as adding fields, changing the text to the welcome and password reset emails, etc. What's the best and/or correct way to transfer the work I've done in Account Settings from one instance of Drupal 8 to another instance of Drupal 8?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x