Error: Call to undefined method Drupal\\node\\Entity\\Node::getName()

Created on 14 February 2025, 9 days ago

Problem/Motivation

If an Entity Reference field references another node, the citation generator throws a console JS error:

Error: Call to undefined method Drupal\\node\\Entity\\Node::getName() in Drupal\\citation_select\\Plugin\\CitationFieldFormatter\\EntityReferenceFormatter->getField() (line 21 of /var/www/html/web/modules/contrib/citation_select/src/Plugin/CitationFieldFormatter/EntityReferenceFormatter.php)."

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom Baysaa

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

Comments & Activities

Production build 0.71.5 2024