Link: image component

Marks links to image files and links that contain image elements with a class, and marks them as external, causing them to open in a new tab.

id: link.image
title: 'Link: image'
description: 'Marks links to image files and links that contain image elements with a class, and marks them as external, causing them to open in a new tab.'
class: Drupal\ambientimpact_core\Plugin\AmbientImpact\Component\LinkImage
provider: ambientimpact_core
{  }
component.link.image:
  js:
    components/link.image/link.image.js:
      attributes:
        defer: true
  dependencies:
    - ambientimpact_core/component.jquery
    - ambientimpact_core/component.link.external
    - ambientimpact_core/component.link.file
    - ambientimpact_core/framework