Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

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.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal