Skip to content

Commit

Permalink
DGIR-142 : fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant-bd committed Dec 22, 2023
1 parent adb6a0d commit 306d40f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Normalizer/V3/ContentEntityNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ public function normalize($object, $format = NULL, array $context = []) {
*/
protected function generateBody(FileInterface $file) : array {
/** @var \Drupal\iiif_presentation_api\Event\V3\ImageBodyEvent $event */
$event_dispatcher = \Drupal::service('event_dispatcher');
$event = $event_dispatcher->dispatch(new ImageBodyEvent($file));
$event = $this->eventDispatcher->dispatch(new ImageBodyEvent($file));
$bodies = $event->getBodies();
if (!$bodies) {
return [];
Expand Down

0 comments on commit 306d40f

Please sign in to comment.