I encountered a situation where Drupal needed revision link for the field collection item entity.

Drupal\Core\Entity\Exception\UndefinedLinkTemplateException: No link template 'revision' found for the 'field_collection_item' entity type in Drupal\Core\Entity\Entity->toUrl() (line 214 of core/lib/Drupal/Core/Entity/Entity.php).

This error only occured when viewing an node revision which is not the default revision. (e.g. in combination with workbench_moderation)

See the patch file for my solution of the problem. I just needed to add the revision link on the field collection item entity and rename the route.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fdyckhoff created an issue. See original summary.

ram4nd’s picture

Status: Needs review » Closed (works as designed)