Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, great module! I have problems making this work with paragraphs module.
I could track done the issue to this code, where the field name is taken before the entity bundle. When I switch those, it works for me.
<?php
elseif (!empty($entity->field_name)) {
$bundle_name = $entity->field_name;
}
elseif (!empty($entity->bundle)) {
$bundle_name = $entity->bundle;
}
?>
I havent fully tested if this has sideffects to other usecases. Since I don't know why this has been done, it would be great to have some feedback.
Comment | File | Size | Author |
---|---|---|---|
entity_reference.patch | 687 bytes | Hydra |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedThanks for the patch! It has been committed.