You are here

public function WebformVariantBase::setElementKey in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 178

Class

WebformVariantBase
Provides a base class for a webform variant.

Namespace

Drupal\webform\Plugin

Code

public function setElementKey($element_key) {
  $this->element_key = $element_key;
  return $this;
}