You are here

public function DefaultLazyPluginCollection::sort in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php \Drupal\Core\Plugin\DefaultLazyPluginCollection::sort()
  2. 9 core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php \Drupal\Core\Plugin\DefaultLazyPluginCollection::sort()

Sorts all plugin instances in this collection.

Return value

$this

File

core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php, line 89

Class

DefaultLazyPluginCollection
Provides a default plugin collection for a plugin type.

Namespace

Drupal\Core\Plugin

Code

public function sort() {
  uasort($this->instanceIds, [
    $this,
    'sortHelper',
  ]);
  return $this;
}