You are here

public static function LeafletAjaxPopupController::getPopupIdentifierAttribute in Leaflet 8

Same name and namespace in other branches
  1. 2.1.x modules/leaflet_views/src/Controller/LeafletAjaxPopupController.php \Drupal\leaflet_views\Controller\LeafletAjaxPopupController::getPopupIdentifierAttribute()
  2. 2.0.x modules/leaflet_views/src/Controller/LeafletAjaxPopupController.php \Drupal\leaflet_views\Controller\LeafletAjaxPopupController::getPopupIdentifierAttribute()

Get popup identifier attribute.

Parameters

string $entityType: The entity type.

int $entityId: The entity id.

string $viewMode: The view mode.

string $langcode: The langcode.

Return value

string The identifier selector.

2 calls to LeafletAjaxPopupController::getPopupIdentifierAttribute()
LeafletAjaxPopupController::getPopupIdentifierSelector in modules/leaflet_views/src/Controller/LeafletAjaxPopupController.php
Get popup identifier selector.
LeafletMap::render in modules/leaflet_views/src/Plugin/views/style/LeafletMap.php
Renders the View.

File

modules/leaflet_views/src/Controller/LeafletAjaxPopupController.php, line 124

Class

LeafletAjaxPopupController
Default controller for the leaflet_views_ajax_popup module.

Namespace

Drupal\leaflet_views\Controller

Code

public static function getPopupIdentifierAttribute($entityType, $entityId, $viewMode, $langcode) {
  return sprintf('data-leaflet-popup-ajax-entity="%s"', self::getPopupIdentifier($entityType, $entityId, $viewMode, $langcode));
}