class ImageEffectPluginCollection in Drupal 10
Same name and namespace in other branches
- 8 core/modules/image/src/ImageEffectPluginCollection.php \Drupal\image\ImageEffectPluginCollection
- 9 core/modules/image/src/ImageEffectPluginCollection.php \Drupal\image\ImageEffectPluginCollection
A collection of image effects.
Hierarchy
- class \Drupal\image\ImageEffectPluginCollection extends \Drupal\Core\Plugin\DefaultLazyPluginCollection
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\imageView 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();
}
}