public function Map::isAsynchronous in Openlayers 7.3
Whether or not this object has to be processed asynchronously.
If true the map this object relates to won't be processes right away by Drupals behaviour attach.
Return value
int Return the number of asynchronous object contained in the parent object.
Overrides Base::isAsynchronous
1 call to Map::isAsynchronous()
- Map::build in src/
Types/ Map.php - Build render array of a map.
File
- src/
Types/ Map.php, line 286 - Class Map.
Class
- Map
- Class Map.
Namespace
Drupal\openlayers\TypesCode
public function isAsynchronous() {
return array_reduce($this
->getDependencies(), function ($res, $obj) {
return $res + (int) $obj
->isAsynchronous();
}, 0);
}