Link: file component

Marks links to common document and video files with a class and marks them as external, causing them to open in a new tab.

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