function LayoutPluginManagerInterface::getGroupedDefinitions

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Layout/LayoutPluginManagerInterface.php \Drupal\Core\Layout\LayoutPluginManagerInterface::getGroupedDefinitions()
  2. 10 core/lib/Drupal/Core/Layout/LayoutPluginManagerInterface.php \Drupal\Core\Layout\LayoutPluginManagerInterface::getGroupedDefinitions()
  3. 9 core/lib/Drupal/Core/Layout/LayoutPluginManagerInterface.php \Drupal\Core\Layout\LayoutPluginManagerInterface::getGroupedDefinitions()
  4. 8.9.x core/lib/Drupal/Core/Layout/LayoutPluginManagerInterface.php \Drupal\Core\Layout\LayoutPluginManagerInterface::getGroupedDefinitions()

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.

string $label_key: (optional) The key to be used as a label for sorting.

Return value

\Drupal\Core\Layout\LayoutDefinition[][] Keys are category names, and values are arrays of which the keys are plugin IDs and the values are plugin definitions.

Overrides CategorizingPluginManagerInterface::getGroupedDefinitions

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

File

core/lib/Drupal/Core/Layout/LayoutPluginManagerInterface.php, line 64

Class

LayoutPluginManagerInterface
Provides the interface for a plugin manager of layouts.

Namespace

Drupal\Core\Layout

Code

public function getGroupedDefinitions(?array $definitions = NULL, string $label_key = 'label');

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