You are here

public function DefaultLazyPluginCollection::sort in Plug 7

Sorts all plugin instances in this collection.

Return value

$this

File

lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php, line 92
Contains \Drupal\Core\Plugin\DefaultLazyPluginCollection.

Class

DefaultLazyPluginCollection
Provides a default plugin collection for a plugin type.

Namespace

Drupal\Core\Plugin

Code

public function sort() {
  uasort($this->instanceIDs, array(
    $this,
    'sortHelper',
  ));
  return $this;
}