summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/navigation/navigation.icons.yml
blob: 7b88744c2f6c5970cc9451cd95b86d938fbc8810 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
navigation:
  enabled: true
  label: "Drupal Navigation"
  description: "Icons available within Drupal Navigation module."
  version: 11.x
  license:
    name: GPL2-or-later
    url: https://api.drupal.org/api/drupal/core%21LICENSE.txt/11.x
    gpl-compatible: true
  extractor: svg
  config:
    sources:
      - assets/icons/*.svg
  settings:
    size:
      title: "Size"
      description: "Set a size for this icon."
      type: "integer"
      default: 20
    class:
      title: "Class"
      description: "Set a class for this icon."
      type: "string"
      default: ""
  template: >
    <svg
      {{ attributes
          .setAttribute('viewBox', attributes.viewBox|default('0 0 24 24'))
          .setAttribute('class', class)
          .setAttribute('width', size|default('20'))
          .setAttribute('height', size|default('20'))
          .setAttribute('aria-hidden', 'true')
      }}
    >
      {{ content }}
    </svg>