You are here

public static function Openlayers::loadExportable in Openlayers 7.3

Load a CTools exportable.

Parameters

string $object_type: Type of object to load: map|layer|source|control|interaction|style|component .

string $export_id: The exportable id.

Return value

array The exported object.

2 calls to Openlayers::loadExportable()
Openlayers::load in src/Openlayers.php
Create an object instance for an export.
Views::init in modules/openlayers_views/src/Plugin/Source/Views/Views.php
@inheritDoc

File

src/Openlayers.php, line 185
Contains Openlayers.

Class

Openlayers
Class Openlayers.

Namespace

Drupal\openlayers

Code

public static function loadExportable($object_type, $export_id) {
  ctools_include('export');
  return ctools_export_crud_load('openlayers_' . drupal_strtolower(check_plain($object_type)) . 's', $export_id);
}