openlayers-8.x-4.x-dev/src/OpenlayersObjectCollection.php
src/OpenlayersObjectCollection.php
<?php
namespace Drupal\openlayers;
use Drupal\Core\Plugin\DefaultLazyPluginCollection;
/**
* A collection of Openlayers plugins.
*/
class OpenlayersObjectCollection extends DefaultLazyPluginCollection {
/**
* {@inheritdoc}
*
* @return \Drupal\image\ImageEffectInterface
*/
public function &get($instance_id) {
return parent::get($instance_id);
}
/**
* {@inheritdoc}
*/
public function sortHelper($aID, $bID) {
return $this->get($aID)->getWeight() <=> $this->get($bID)->getWeight();
}
/**
* {@inheritdoc}
*/
public function getConfigurations() {
return $this->configurations;
}
}
