You are here

public function Base::getObjects in Openlayers 7.3

Return an array of OL objects indexed by their type.

Parameters

string $type:

Return value

array

Overrides ObjectInterface::getObjects

2 calls to Base::getObjects()
Layer::getSource in src/Types/Layer.php
Returns the source of this layer.
Layer::getStyle in src/Types/Layer.php
Returns the style of this layer.

File

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

Class

Base
Class Base.

Namespace

Drupal\openlayers\Types

Code

public function getObjects($type = NULL) {
  return array_values($this
    ->getCollection()
    ->getObjects($type));
}