You are here

public function YamlFormElementManager::getAllProperties in YAML Form 8

Get all properties for all elements.

Return value

array An array of all properties.

Overrides YamlFormElementManagerInterface::getAllProperties

File

src/YamlFormElementManager.php, line 177

Class

YamlFormElementManager
Provides a plugin manager for form element plugins.

Namespace

Drupal\yamlform

Code

public function getAllProperties() {
  $properties = [];
  $yamlform_elements = $this
    ->getInstances();
  foreach ($yamlform_elements as $yamlform_element) {
    $default_properties = array_keys($yamlform_element
      ->getDefaultProperties());
    $properties += array_combine($default_properties, $default_properties);
  }
  ksort($properties);
  return $properties;
}