You are here

public function ExpressionBase::setWeight in Rules 8.3

Sets the list order of this expression in an expression tree.

Parameters

int $weight: The weight to set.

Return value

$this

Overrides ExpressionInterface::setWeight

File

src/Engine/ExpressionBase.php, line 175

Class

ExpressionBase
Base class for rules expressions.

Namespace

Drupal\rules\Engine

Code

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