You are here

public function WebformVariantBase::setWeight in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformVariantBase.php \Drupal\webform\Plugin\WebformVariantBase::setWeight()

Sets the weight for this webform variant.

Parameters

int $weight: The weight for this webform variant.

Return value

$this

Overrides WebformVariantInterface::setWeight

File

src/Plugin/WebformVariantBase.php, line 231

Class

WebformVariantBase
Provides a base class for a webform variant.

Namespace

Drupal\webform\Plugin

Code

public function setWeight($weight) {
  $this->weight = $weight;
  return $this;
}