replaced deprecated function

This commit is contained in:
naomi 2022-03-17 10:41:39 +00:00
parent 57fae7c1c3
commit 65fe65474e
2 changed files with 3 additions and 1 deletions

View File

@ -124,7 +124,7 @@ class OCOrganisationController extends ControllerBase implements ContainerInject
]));
}
else {
$link = $oc_organisation->link($date);
$link = $oc_organisation->toLink($date)->toString();
}
$row = [];

View File

@ -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}