You are here

public function Base::postBuild in Openlayers 7.3

Invoked after an objects render array is built.

Mostly invoked by the map object.

Parameters

array $build: The array with the build information.

\Drupal\openlayers\Types\ObjectInterface $context: The context of the build. Mostly the map object.

Overrides ObjectInterface::postBuild

1 call to Base::postBuild()
MapSwitcher::postBuild in modules/openlayers_library/src/Plugin/Component/MapSwitcher/MapSwitcher.php
Invoked after an objects render array is built.
13 methods override Base::postBuild()
BlockLayerSwitcher::postBuild in modules/openlayers_library/src/Plugin/Component/BlockLayerSwitcher/BlockLayerSwitcher.php
Invoked after an objects render array is built.
Debug::postBuild in src/Plugin/Component/Debug/Debug.php
Invoked after an objects render array is built.
Fractal::postBuild in modules/openlayers_library/src/Plugin/Component/Fractal/Fractal.php
Invoked after an objects render array is built.
GeofieldWidget::postBuild in modules/openlayers_geofield/src/Plugin/Component/GeofieldWidget/GeofieldWidget.php
Invoked after an objects render array is built.
Geolocation::postBuild in modules/openlayers_library/src/Plugin/Component/Geolocation/Geolocation.php
Invoked after an objects render array is built.

... See full list

File

src/Types/Base.php, line 352
Class Object.

Class

Base
Class Base.

Namespace

Drupal\openlayers\Types

Code

public function postBuild(array &$build, ObjectInterface $context = NULL) {
  foreach ($this
    ->getCollection()
    ->getFlatList() as $object) {
    if ($object !== $this) {
      $object
        ->postBuild($build, $context);
    }
  }
  drupal_alter('openlayers_object_postprocess', $build, $this);
}