You are here

protected function MapThemerBase::getDefaultLegendIcon in Geofield Map 8.2

Returns the default Icon output for the Legend.

Return value

array The DefaultLegendIcon render array.

7 calls to MapThemerBase::getDefaultLegendIcon()
CustomIconThemer::getLegend in src/Plugin/GeofieldMapThemer/CustomIconThemer.php
Generate the Legend render array.
EntityTypeThemer::getLegend in src/Plugin/GeofieldMapThemer/EntityTypeThemer.php
Generate the Legend render array.
EntityTypeThemerUrl::getLegend in src/Plugin/GeofieldMapThemer/EntityTypeThemerUrl.php
Generate the Legend render array.
ListFieldThemer::getLegend in src/Plugin/GeofieldMapThemer/ListFieldThemer.php
Generate the Legend render array.
ListFieldThemerUrl::getLegend in src/Plugin/GeofieldMapThemer/ListFieldThemerUrl.php
Generate the Legend render array.

... See full list

File

src/MapThemerBase.php, line 169

Class

MapThemerBase
A base class for MapThemer plugins.

Namespace

Drupal\geofield_map

Code

protected function getDefaultLegendIcon() {
  return [
    '#type' => 'container',
    'markup' => [
      '#markup' => $this
        ->t('[default-icon]'),
    ],
    '#attributes' => [
      'class' => [
        'default-icon',
      ],
    ],
  ];
}