public function WebformInterface::setElementProperties in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformInterface.php \Drupal\webform\WebformInterface::setElementProperties()
Set element properties.
Parameters
string $key: The element's key.
array $properties: An associative array of properties.
string $parent_key: (optional) The element's parent key. Only used for new elements.
Return value
$this
1 method overrides WebformInterface::setElementProperties()
- Webform::setElementProperties in src/
Entity/ Webform.php - Set element properties.
File
- src/
WebformInterface.php, line 708
Class
- WebformInterface
- Provides an interface defining a webform entity.
Namespace
Drupal\webformCode
public function setElementProperties($key, array $properties, $parent_key = '');