ImageEffectPluginCollection.php in Zircon Profile 8.0
File
core/modules/image/src/ImageEffectPluginCollection.php
View source
<?php
namespace Drupal\image;
use Drupal\Core\Plugin\DefaultLazyPluginCollection;
class ImageEffectPluginCollection extends DefaultLazyPluginCollection {
public function &get($instance_id) {
return parent::get($instance_id);
}
public function sortHelper($aID, $bID) {
$a_weight = $this
->get($aID)
->getWeight();
$b_weight = $this
->get($bID)
->getWeight();
if ($a_weight == $b_weight) {
return 0;
}
return $a_weight < $b_weight ? -1 : 1;
}
}