function CategorizingPluginManagerInterface::getSortedDefinitions

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Plugin/CategorizingPluginManagerInterface.php \Drupal\Component\Plugin\CategorizingPluginManagerInterface::getSortedDefinitions()
  2. 8.9.x core/lib/Drupal/Component/Plugin/CategorizingPluginManagerInterface.php \Drupal\Component\Plugin\CategorizingPluginManagerInterface::getSortedDefinitions()
  3. 10 core/lib/Drupal/Component/Plugin/CategorizingPluginManagerInterface.php \Drupal\Component\Plugin\CategorizingPluginManagerInterface::getSortedDefinitions()

Gets sorted plugin definitions.

Parameters

array[]|null $definitions: (optional) The plugin definitions to sort. If omitted, all plugin definitions are used.

Return value

array[] An array of plugin definitions, sorted by category and label.

1 method overrides CategorizingPluginManagerInterface::getSortedDefinitions()
LayoutPluginManagerInterface::getSortedDefinitions in core/lib/Drupal/Core/Layout/LayoutPluginManagerInterface.php

File

core/lib/Drupal/Component/Plugin/CategorizingPluginManagerInterface.php, line 28

Class

CategorizingPluginManagerInterface
Defines an interface for plugin managers that categorize plugin definitions.

Namespace

Drupal\Component\Plugin

Code

public function getSortedDefinitions(?array $definitions = NULL);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.