You are here

public static function LeafletAjaxPopupController::getPopupIdentifier 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::getPopupIdentifier()
  2. 2.0.x modules/leaflet_views/src/Controller/LeafletAjaxPopupController.php \Drupal\leaflet_views\Controller\LeafletAjaxPopupController::getPopupIdentifier()

Get popup identifier.

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.

1 call to LeafletAjaxPopupController::getPopupIdentifier()
LeafletAjaxPopupController::getPopupIdentifierAttribute in modules/leaflet_views/src/Controller/LeafletAjaxPopupController.php
Get popup identifier attribute.

File

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

Class

LeafletAjaxPopupController
Default controller for the leaflet_views_ajax_popup module.

Namespace

Drupal\leaflet_views\Controller

Code

public static function getPopupIdentifier($entityType, $entityId, $viewMode, $langcode) {
  return "{$entityType}-{$entityId}-{$viewMode}-{$langcode}";
}