From 65fe65474ea48f1cc53707f8db10f7ed9a7d4bbc Mon Sep 17 00:00:00 2001 From: naomi Date: Thu, 17 Mar 2022 10:41:39 +0000 Subject: [PATCH] replaced deprecated function --- .../src/Controller/OCOrganisationController.php | 2 +- modules/opencase_entities/src/Entity/OCOrganisation.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/opencase_entities/src/Controller/OCOrganisationController.php b/modules/opencase_entities/src/Controller/OCOrganisationController.php index 7146bb8..59cc89c 100644 --- a/modules/opencase_entities/src/Controller/OCOrganisationController.php +++ b/modules/opencase_entities/src/Controller/OCOrganisationController.php @@ -124,7 +124,7 @@ class OCOrganisationController extends ControllerBase implements ContainerInject ])); } else { - $link = $oc_organisation->link($date); + $link = $oc_organisation->toLink($date)->toString(); } $row = []; diff --git a/modules/opencase_entities/src/Entity/OCOrganisation.php b/modules/opencase_entities/src/Entity/OCOrganisation.php index 3625f01..40f5563 100644 --- a/modules/opencase_entities/src/Entity/OCOrganisation.php +++ b/modules/opencase_entities/src/Entity/OCOrganisation.php @@ -9,6 +9,7 @@ use Drupal\Core\Entity\RevisionableInterface; use Drupal\Core\Entity\EntityChangedTrait; use Drupal\Core\Entity\EntityPublishedTrait; use Drupal\Core\Entity\EntityTypeInterface; +use Drupal\Core\Entity\RevisionLogEntityTrait; use Drupal\user\UserInterface; /** @@ -81,6 +82,7 @@ class OCOrganisation extends EditorialContentEntityBase implements OCOrganisatio use EntityChangedTrait; use EntityPublishedTrait; + use RevisionLogEntityTrait; /** * {@inheritdoc}