function ImageEffectPluginCollection::sortHelper
Same name in other branches
- 9 core/modules/image/src/ImageEffectPluginCollection.php \Drupal\image\ImageEffectPluginCollection::sortHelper()
- 8.9.x core/modules/image/src/ImageEffectPluginCollection.php \Drupal\image\ImageEffectPluginCollection::sortHelper()
- 11.x core/modules/image/src/ImageEffectPluginCollection.php \Drupal\image\ImageEffectPluginCollection::sortHelper()
Overrides DefaultLazyPluginCollection::sortHelper
File
-
core/
modules/ image/ src/ ImageEffectPluginCollection.php, line 24
Class
- ImageEffectPluginCollection
- A collection of image effects.
Namespace
Drupal\imageCode
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.