replaced deprecated function
This commit is contained in:
parent
57fae7c1c3
commit
65fe65474e
@ -124,7 +124,7 @@ class OCOrganisationController extends ControllerBase implements ContainerInject
|
|||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$link = $oc_organisation->link($date);
|
$link = $oc_organisation->toLink($date)->toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
$row = [];
|
$row = [];
|
||||||
|
@ -9,6 +9,7 @@ use Drupal\Core\Entity\RevisionableInterface;
|
|||||||
use Drupal\Core\Entity\EntityChangedTrait;
|
use Drupal\Core\Entity\EntityChangedTrait;
|
||||||
use Drupal\Core\Entity\EntityPublishedTrait;
|
use Drupal\Core\Entity\EntityPublishedTrait;
|
||||||
use Drupal\Core\Entity\EntityTypeInterface;
|
use Drupal\Core\Entity\EntityTypeInterface;
|
||||||
|
use Drupal\Core\Entity\RevisionLogEntityTrait;
|
||||||
use Drupal\user\UserInterface;
|
use Drupal\user\UserInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -81,6 +82,7 @@ class OCOrganisation extends EditorialContentEntityBase implements OCOrganisatio
|
|||||||
|
|
||||||
use EntityChangedTrait;
|
use EntityChangedTrait;
|
||||||
use EntityPublishedTrait;
|
use EntityPublishedTrait;
|
||||||
|
use RevisionLogEntityTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
Reference in New Issue
Block a user