public function YamlFormHandlerManager::getGroupedDefinitions in YAML Form 8
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.
Overrides CategorizingPluginManagerInterface::getGroupedDefinitions
File
- src/
YamlFormHandlerManager.php, line 58
Class
- YamlFormHandlerManager
- Manages form handler plugins.
Namespace
Drupal\yamlformCode
public function getGroupedDefinitions(array $definitions = NULL) {
$definitions = $this
->traitGetGroupedDefinitions($definitions);
// Do not display the 'broken' plugin in the UI.
unset($definitions[$this
->t('Broken')]['broken']);
return $definitions;
}