function DefaultLazyPluginCollection::sort
Same name in other branches
- 9 core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php \Drupal\Core\Plugin\DefaultLazyPluginCollection::sort()
- 8.9.x core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php \Drupal\Core\Plugin\DefaultLazyPluginCollection::sort()
- 11.x core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php \Drupal\Core\Plugin\DefaultLazyPluginCollection::sort()
Sorts all plugin instances in this collection.
Return value
$this
1 method overrides DefaultLazyPluginCollection::sort()
- FilterPluginCollection::sort in core/
modules/ filter/ src/ FilterPluginCollection.php - Sorts all plugin instances in this collection.
File
-
core/
lib/ Drupal/ Core/ Plugin/ DefaultLazyPluginCollection.php, line 89
Class
- DefaultLazyPluginCollection
- Provides a default plugin collection for a plugin type.
Namespace
Drupal\Core\PluginCode
public function sort() {
uasort($this->instanceIds, [
$this,
'sortHelper',
]);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.