- Issue created by @Dishvola
- @dishvola opened merge request.
Some entities doesn't have an entity page (canonical).
I got en error:
Drupal\Core\Entity\Exception\UndefinedLinkTemplateException: No link template 'canonical' found for the 'paragraph' entity type in Drupal\Core\Entity\EntityBase->toUrl() (line 196 of core/lib/Drupal/Core/Entity/EntityBase.php).
Create a view to show submission field "Submitted to:".
Source entity should not have a "canonical" entity page, like Paragraph entity.
https://www.drupal.org/project/paragraphs/issues/3238515#comment-15295491
π¬
No link template 'canonical' found for the 'paragraph' entity type
Fixed
We should check source entity like
$source_entity->hasLinkTemplate('canonical')
before call
$source_entity->toLink()
in the WebformSubmissionSubmittedToLabel.php
Active
5.0
Code