public function Collection::getJS in Openlayers 7.3
Array with all the JS settings of the collection objects.
Return value
array All the JS settings of the collection objects.
File
- src/
Types/ Collection.php, line 146 - Class Collection.
Class
- Collection
- Class Collection.
Namespace
Drupal\openlayers\TypesCode
public function getJS() {
$settings = array();
foreach ($this
->getFlatList() as $object) {
$settings[$object
->getType()][] = $object
->getJS();
}
return array_change_key_case($settings, CASE_LOWER);
}