public function Collection::clear in Openlayers 7.3
Remove object type.
Parameters
array $types: The types of objects to remove.
File
- src/
Types/ Collection.php, line 105 - Class Collection.
Class
- Collection
- Class Collection.
Namespace
Drupal\openlayers\TypesCode
public function clear(array $types = array()) {
foreach ($types as $type) {
unset($this->objects[$type]);
}
}