fixed deprecated functions
This commit is contained in:
@ -118,10 +118,11 @@ class OCOrganisationController extends ControllerBase implements ContainerInject
|
||||
// Use revision link to link to revisions that are not active.
|
||||
$date = $this->dateFormatter->format($revision->getRevisionCreationTime(), 'short');
|
||||
if ($vid != $oc_organisation->getRevisionId()) {
|
||||
$link = $this->l($date, new Url('entity.oc_organisation.revision', [
|
||||
$url = new Url('entity.oc_organisation.revision', [
|
||||
'oc_organisation' => $oc_organisation->id(),
|
||||
'oc_organisation_revision' => $vid,
|
||||
]));
|
||||
]);
|
||||
$link = \Drupal\Core\Link::fromTextAndUrl($date,$url)->toString();
|
||||
}
|
||||
else {
|
||||
$link = $oc_organisation->toLink($date)->toString();
|
||||
|
||||
Reference in New Issue
Block a user