public function WebformElementBase::getDefaultProperties in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::getDefaultProperties()
Get default properties.
Return value
array An associative array containing default element properties.
Overrides WebformElementInterface::getDefaultProperties
4 calls to WebformElementBase::getDefaultProperties()
- WebformElementBase::buildConfigurationForm in src/
Plugin/ WebformElementBase.php - Form constructor.
- WebformElementBase::getDefaultProperty in src/
Plugin/ WebformElementBase.php - Get an element's default property value.
- WebformElementBase::hasMultipleValues in src/
Plugin/ WebformElementBase.php - Checks if the element value has multiple values.
- WebformElementBase::hasProperty in src/
Plugin/ WebformElementBase.php - Determine if the element supports a specified property.
File
- src/
Plugin/ WebformElementBase.php, line 355
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
public function getDefaultProperties() {
if (!isset($this->defaultProperties)) {
$properties = $this
->defineDefaultProperties();
$definition = $this
->getPluginDefinition();
\Drupal::moduleHandler()
->alter('webform_element_default_properties', $properties, $definition);
$this->defaultProperties = $properties;
}
return $this->defaultProperties;
}