fixed some issues caused by c&ping from opencase_entities

This commit is contained in:
2021-02-18 12:02:25 +00:00
parent 0f0281c58c
commit bc98ecb541
27 changed files with 89 additions and 90 deletions

View File

@ -1,12 +1,12 @@
<?php
namespace Drupal\opencase_entities\Controller;
namespace Drupal\opencase_cases\Controller;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Url;
use Drupal\opencase_entities\Entity\OCCaseInterface;
use Drupal\opencase_cases\Entity\OCCaseInterface;
/**
* Class OCCaseController.
@ -48,7 +48,7 @@ class OCCaseController extends ControllerBase implements ContainerInjectionInter
/**
* Generates an overview table of older revisions of a Case .
*
* @param \Drupal\opencase_entities\Entity\OCCaseInterface $oc_case
* @param \Drupal\opencase_cases\Entity\OCCaseInterface $oc_case
* A Case object.
*
* @return array
@ -75,7 +75,7 @@ class OCCaseController extends ControllerBase implements ContainerInjectionInter
$latest_revision = TRUE;
foreach (array_reverse($vids) as $vid) {
/** @var \Drupal\opencase_entities\OCCaseInterface $revision */
/** @var \Drupal\opencase_cases\OCCaseInterface $revision */
$revision = $oc_case_storage->loadRevision($vid);
// Only show revisions that are affected by the language that is being
// displayed.