diff --git a/src/Entity/Paragraph.php b/src/Entity/Paragraph.php index d44bd63..646445f 100644 --- a/src/Entity/Paragraph.php +++ b/src/Entity/Paragraph.php @@ -34,6 +34,9 @@ use Drupal\user\UserInterface; * "delete" = "Drupal\Core\Entity\ContentEntityDeleteForm", * "edit" = "Drupal\Core\Entity\ContentEntityForm" * }, + * "route_provider" = { + * "html" = "Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider", + * }, * "views_data" = "Drupal\views\EntityViewsData", * }, * base_table = "paragraphs_item", @@ -74,6 +77,9 @@ use Drupal\user\UserInterface; * "entity_view_display" = { * "type" = "entity_reference_revisions_entity_view" * } + * }, + * links = { + * "canonical" = "/paragraphs/{paragraph}", * } * ) */