You are here

public function MarkerIconService::getFileSelectHelp in Geofield Map 8.2

Generate File Select Help Message.

Return value

array The field select help element.

File

src/Services/MarkerIconService.php, line 473

Class

MarkerIconService
Provides an Icon Managed File Service.

Namespace

Drupal\geofield_map\Services

Code

public function getFileSelectHelp() {
  $element = [
    '#type' => 'html_tag',
    '#tag' => 'div',
    '#value' => $this
      ->t('Select among the files available in the Theming Markers Location:<br>@markers_location,<br>Looked extensions: @allowed_extensions<br>Customize this in: @geofield_map_settings_page_link', [
      '@markers_location' => $this
        ->markersLocationUri(),
      '@allowed_extensions' => implode(', ', explode(' ', $this->allowedExtension)),
      '@geofield_map_settings_page_link' => $this->link
        ->generate('Geofield Map Settings Page', Url::fromRoute('geofield_map.settings')),
    ]),
    '#attributes' => [
      'style' => [
        'style' => 'font-size:0.9em; color: gray; font-weight: normal',
      ],
    ],
  ];
  return $element;
}