OpenlayersPluginCollection.php in Openlayers 8.4
File
src/OpenlayersPluginCollection.php
View source
<?php
namespace Drupal\openlayers;
use Drupal\Core\Plugin\DefaultLazyPluginCollection;
use Drupal\Component\Utility\Unicode;
class OpenlayersPluginCollection extends DefaultLazyPluginCollection {
public function &get($instance_id) {
return parent::get($instance_id);
}
public function sortHelper($aID, $bID) {
$a_label = $this
->get($aID)
->label();
$b_label = $this
->get($bID)
->label();
return Unicode::strcasecmp($a_label, $b_label);
}
}