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