You are here

public static function Openlayers::loadAllExportable in Openlayers 7.3

Gets all available OL objects.

Parameters

string $type: The plugin type.

Return value

array Array of Openlayers CTools object instances. (stdClass)

10 calls to Openlayers::loadAllExportable()
MapSwitcher::postBuild in modules/openlayers_library/src/Plugin/Component/MapSwitcher/MapSwitcher.php
Invoked after an objects render array is built.
Openlayers::loadAll in src/Openlayers.php
Load all objects.
Openlayers::loadAllAsOptions in src/Openlayers.php
Gets a list of Openlayers exportable.
openlayers_component_form_start in modules/openlayers_ui/src/Plugin/export_ui/OpenlayersComponents.inc
Component base config form handler.
openlayers_control_form_start in modules/openlayers_ui/src/Plugin/export_ui/OpenlayersControls.inc
Control base config form handler.

... See full list

File

src/Openlayers.php, line 64
Contains Openlayers.

Class

Openlayers
Class Openlayers.

Namespace

Drupal\openlayers

Code

public static function loadAllExportable($type = NULL) {
  ctools_include('export');
  $exports = ctools_export_crud_load_all('openlayers_' . drupal_strtolower(check_plain($type)) . 's');
  uasort($exports, function ($a, $b) {
    return strcasecmp($a->name, $b->name);
  });
  return $exports;
}