public function WebformVariantBase::setElementKey in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformVariantBase.php \Drupal\webform\Plugin\WebformVariantBase::setElementKey()
Sets the element key of this webform variant.
Parameters
int $element_key: The element key for this webform variant.
Return value
$this
Overrides WebformVariantInterface::setElementKey
File
- src/
Plugin/ WebformVariantBase.php, line 158
Class
- WebformVariantBase
- Provides a base class for a webform variant.
Namespace
Drupal\webform\PluginCode
public function setElementKey($element_key) {
$this->element_key = $element_key;
return $this;
}