public function ElementBase::getProperties in Form Builder 7.2
Get a list of properties available for this element.
Return value
\Drupal\form_builder\PropertyInterface[] An associative array of properties keyed by the property name.
Overrides ElementInterface::getProperties
4 calls to ElementBase::getProperties()
- Element::configurationForm in examples/
src/ Element.php - Get the configuration form for this element.
- Element::configurationForm in modules/
webform/ src/ Element.php - Get the configuration form for this element.
- Element::setProperty in modules/
webform/ src/ Element.php - Set the value of a property.
- ElementBase::configurationSubmit in src/
ElementBase.php - Submit handler for the configuration form.
File
- src/
ElementBase.php, line 41
Class
Namespace
Drupal\form_builderCode
public function getProperties() {
$return = array();
$properties = $this->form
->getProperties();
// Order of the properties is important because of a form-API bug.
// See: https://www.drupal.org/node/990218.
foreach ($this->params['properties'] as $name) {
if (isset($properties[$name])) {
$return[$name] = $properties[$name];
}
}
return $return;
}