public function WebformElementManager::getAllProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElementManager.php \Drupal\webform\Plugin\WebformElementManager::getAllProperties()
Get all properties for all elements.
Return value
array An array of all properties.
Overrides WebformElementManagerInterface::getAllProperties
File
- src/
Plugin/ WebformElementManager.php, line 349
Class
- WebformElementManager
- Provides a plugin manager for webform element plugins.
Namespace
Drupal\webform\PluginCode
public function getAllProperties() {
$properties = [];
$webform_elements = $this
->getInstances();
foreach ($webform_elements as $webform_element) {
$default_properties = array_keys($webform_element
->getDefaultProperties());
$properties += array_combine($default_properties, $default_properties);
}
ksort($properties);
return $properties;
}