You are here

public function LeafletService::leafletIconDocumentationLink in Leaflet 8

Same name and namespace in other branches
  1. 2.1.x src/LeafletService.php \Drupal\leaflet\LeafletService::leafletIconDocumentationLink()
  2. 2.0.x src/LeafletService.php \Drupal\leaflet\LeafletService::leafletIconDocumentationLink()

Leaflet Icon Documentation Link.

Return value

\Drupal\Core\GeneratedLink The Leaflet Icon Documentation Link.

File

src/LeafletService.php, line 331

Class

LeafletService
Provides a LeafletService class.

Namespace

Drupal\leaflet

Code

public function leafletIconDocumentationLink() {
  return $this->link
    ->generate(t('Leaflet Icon Documentation'), Url::fromUri('https://leafletjs.com/reference-1.3.0.html#icon', [
    'absolute' => TRUE,
    'attributes' => [
      'target' => 'blank',
    ],
  ]));
}