3 namespace Drupal\image;
5 use Drupal\Core\Plugin\DefaultLazyPluginCollection;
8 * A collection of image effects.
10 class ImageEffectPluginCollection extends DefaultLazyPluginCollection {
15 * @return \Drupal\image\ImageEffectInterface
17 public function &get($instance_id) {
18 return parent::get($instance_id);
24 public function sortHelper($aID, $bID) {
25 $a_weight = $this->get($aID)->getWeight();
26 $b_weight = $this->get($bID)->getWeight();
27 if ($a_weight == $b_weight) {
31 return ($a_weight < $b_weight) ? -1 : 1;