function LayoutPluginManagerInterface::getSortedDefinitions

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

Gets sorted plugin definitions.

Parameters

array[]|null $definitions: (optional) The plugin definitions to sort. 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[] An array of plugin definitions, sorted by category and label.

Overrides CategorizingPluginManagerInterface::getSortedDefinitions

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

File

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

Class

LayoutPluginManagerInterface
Provides the interface for a plugin manager of layouts.

Namespace

Drupal\Core\Layout

Code

public function getSortedDefinitions(?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.