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