function DefaultLazyPluginCollection::sortHelper
Same name in other branches
- 9 core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php \Drupal\Core\Plugin\DefaultLazyPluginCollection::sortHelper()
- 8.9.x core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php \Drupal\Core\Plugin\DefaultLazyPluginCollection::sortHelper()
- 10 core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php \Drupal\Core\Plugin\DefaultLazyPluginCollection::sortHelper()
Provides uasort() callback to sort plugins.
1 call to DefaultLazyPluginCollection::sortHelper()
- FilterPluginCollection::sortHelper in core/
modules/ filter/ src/ FilterPluginCollection.php
2 methods override DefaultLazyPluginCollection::sortHelper()
- FilterPluginCollection::sortHelper in core/
modules/ filter/ src/ FilterPluginCollection.php - ImageEffectPluginCollection::sortHelper in core/
modules/ image/ src/ ImageEffectPluginCollection.php
File
-
core/
lib/ Drupal/ Core/ Plugin/ DefaultLazyPluginCollection.php, line 97
Class
- DefaultLazyPluginCollection
- Provides a default plugin collection for a plugin type.
Namespace
Drupal\Core\PluginCode
public function sortHelper($aID, $bID) {
$a = $this->get($aID);
$b = $this->get($bID);
return strnatcasecmp($a->getPluginId(), $b->getPluginId());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.