You are here

public function YamlFormHandlerBase::setWeight in YAML Form 8

Sets the weight for this form handler.

Parameters

int $weight: The weight for this form handler.

Return value

$this

Overrides YamlFormHandlerInterface::setWeight

File

src/YamlFormHandlerBase.php, line 193

Class

YamlFormHandlerBase
Provides a base class for a form handler.

Namespace

Drupal\yamlform

Code

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