Commit 5005a5dd authored by Joshua Sedler's avatar Joshua Sedler 🤸🏼
Browse files

Issue #3218673 by Grevil, GuillaumeDuveau: Fix photoswipe_caption...

Issue #3218673 by Grevil, GuillaumeDuveau: Fix photoswipe_caption "entity_label" (legacy title: "node_title")
parent e562b8a7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -153,6 +153,7 @@ class PhotoswipePreprocessProcessor implements ContainerInjectionInterface {
        case 'node_title':
        case 'entity_label':
          $caption = $this->imageDTO->getEntity()->label() ?: $this->imageDTO->getAlt();
          break;

        case 'custom':
          $entity_type = $this->imageDTO->getEntity()->getEntityTypeId();