Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Commit

Permalink
Fix normalizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiu-cristea committed May 13, 2019
1 parent d3a5156 commit cbef0a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Normalizer/SparqlEntityNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\rdf_entity\RdfEntitySparqlStorageInterface;
use Drupal\rdf_entity\SparqlSerializer;
use Drupal\sparql_entity_storage\SparqlEntityStorageInterface;

/**
* Converts the Drupal entity object structure to a HAL array structure.
Expand All @@ -17,7 +17,7 @@ class SparqlEntityNormalizer extends NormalizerBase {
/**
* The serializer service.
*
* @var \Drupal\rdf_entity\SparqlSerializer
* @var \Drupal\rdf_entity\SparqlSerializerInterface
*/
protected $sparqlSerializer;

Expand Down Expand Up @@ -52,7 +52,7 @@ public function supportsNormalization($data, $format = NULL): bool {

if ($data instanceof ContentEntityInterface) {
$storage = $this->entityTypeManager->getStorage($data->getEntityTypeId());
return $storage instanceof RdfEntitySparqlStorageInterface;
return $storage instanceof SparqlEntityStorageInterface;
}
return FALSE;
}
Expand Down

0 comments on commit cbef0a6

Please sign in to comment.