Browse Source

Add image loading.

pull/872/head
Rosie Le Faive 3 years ago
parent
commit
219e90a675
  1. 2
      tests/src/Functional/IslandoraImageFormatterTest.php

2
tests/src/Functional/IslandoraImageFormatterTest.php

@ -32,7 +32,7 @@ class IslandoraImageFormatterTest extends IslandoraFunctionalTestBase {
// Also, only show the image on display to remove clutter.
$display_options = [
'type' => 'islandora_image',
'settings' => ['image_style' => NULL, 'image_link' => 'content'],
'settings' => ['image_style' => NULL, 'image_link' => 'content', 'image_loading' => 'lazy'],
];
$display = $this->container->get('entity_display.repository')->getViewDisplay('media', $testImageMediaType->id(), 'default');
$display->setComponent('field_media_image', $display_options)

Loading…
Cancel
Save