You are here

public function WebformHandlerBase::setWeight in Webform 6.x

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

Sets the weight for this webform handler.

Parameters

int $weight: The weight for this webform handler.

Return value

$this

Overrides WebformHandlerInterface::setWeight

File

src/Plugin/WebformHandlerBase.php, line 281

Class

WebformHandlerBase
Provides a base class for a webform handler.

Namespace

Drupal\webform\Plugin

Code

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