You are here

public function CategorizingPluginManagerInterface::getGroupedDefinitions in Plug 7

Gets sorted plugin definitions grouped by category.

In addition to grouping, both categories and its entries are sorted, whereas plugin definitions are sorted by label.

Parameters

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

Return value

array[] Keys are category names, and values are arrays of which the keys are plugin IDs and the values are plugin definitions.

File

lib/Drupal/Component/Plugin/CategorizingPluginManagerInterface.php, line 49
Contains \Drupal\Component\Plugin\CategorizingPluginManagerInterface.

Class

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

Namespace

Drupal\Component\Plugin

Code

public function getGroupedDefinitions(array $definitions = NULL);