public function WebformElementManagerInterface::getSortedDefinitions in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElementManagerInterface.php \Drupal\webform\Plugin\WebformElementManagerInterface::getSortedDefinitions()
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/
Plugin/ WebformElementManagerInterface.php, line 142
Class
- WebformElementManagerInterface
- Collects available webform elements.
Namespace
Drupal\webform\PluginCode
public function getSortedDefinitions(array $definitions = NULL, $sort_by = 'label');