Incompatible with UI Icons

Created on 19 September 2025, 20 days ago

Problem/Motivation

We have an infobox block with an Icon field that uses UI Icons. When we want to copy paste a section with such a block, the website gives an error.

Error: Call to undefined method Drupal\ui_icons_field\Plugin\Field\FieldType\IconFieldItemList::referencedEntities() in Drupal\lb_copy_section\Controller\CopySectionController->cloneReferencedEntities() (line 147 of /var/www/html/web/modules/contrib/lb_copy_section/src/DeepCloningTrait.php).

Steps to reproduce

See above

Proposed resolution

Check if the entity field has the method referencedEntities before calling it.

Remaining tasks

User interface changes

N/A

API changes

N/A

Data model changes

N/A

💬 Support request
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium tim-diels Belgium 🇧🇪

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024