ImageEffectPluginCollection.php

Same filename in other branches
  1. 9 core/modules/image/src/ImageEffectPluginCollection.php
  2. 8.9.x core/modules/image/src/ImageEffectPluginCollection.php
  3. 10 core/modules/image/src/ImageEffectPluginCollection.php

Namespace

Drupal\image

File

core/modules/image/src/ImageEffectPluginCollection.php

View source
<?php

namespace Drupal\image;

use Drupal\Core\Plugin\DefaultLazyPluginCollection;

/**
 * A collection of image effects.
 */
class ImageEffectPluginCollection 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();
    }

}

Classes

Title Deprecated Summary
ImageEffectPluginCollection A collection of image effects.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.