public function YamlFormElementManagerInterface::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.
string $sort_by: The property to sort plugin definitions by. Only 'label' and 'category' are supported. Defaults to label.
Return value
array[] An array of plugin definitions, sorted by category and label.
Overrides CategorizingPluginManagerInterface::getSortedDefinitions
File
- src/
YamlFormElementManagerInterface.php, line 79
Class
- YamlFormElementManagerInterface
- Collects available form elements.
Namespace
Drupal\yamlformCode
public function getSortedDefinitions(array $definitions = NULL, $sort_by = 'label');