You are here

public function YamlFormExporterManager::getSortedDefinitions in YAML Form 8

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.

Overrides CategorizingPluginManagerInterface::getSortedDefinitions

2 calls to YamlFormExporterManager::getSortedDefinitions()
YamlFormExporterManager::getInstances in src/YamlFormExporterManager.php
Get all available form element plugin instances.
YamlFormExporterManager::getOptions in src/YamlFormExporterManager.php
Get exporter plugins as options.

File

src/YamlFormExporterManager.php, line 46

Class

YamlFormExporterManager
Manages results exporter plugins.

Namespace

Drupal\yamlform

Code

public function getSortedDefinitions(array $definitions = NULL) {

  // Sort the plugins first by category, then by label.
  $definitions = $this
    ->traitGetSortedDefinitions($definitions);
  return $definitions;
}