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.
Comment | File | Size | Author |
---|---|---|---|
field_collection_revision_link_template.patch | 2.08 KB | fdyckhoff | |
|
Comments
Comment #2
ram4nd CreditAttribution: ram4nd as a volunteer commented