You are here

class ImageEffectPluginCollection in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/image/src/ImageEffectPluginCollection.php \Drupal\image\ImageEffectPluginCollection
  2. 9 core/modules/image/src/ImageEffectPluginCollection.php \Drupal\image\ImageEffectPluginCollection

A collection of image effects.

Hierarchy

Expanded class hierarchy of ImageEffectPluginCollection

2 files declare their use of ImageEffectPluginCollection
ImageStyle.php in core/modules/image/src/Entity/ImageStyle.php
MigrateImageCacheTest.php in core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php

File

core/modules/image/src/ImageEffectPluginCollection.php, line 10

Namespace

Drupal\image
View source
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();
  }

}

Members