class ImageEffectPluginCollection

Same name and namespace in other branches
  1. 11.x 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();
  }

}

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