You are here

public function MessagePurgeBase::setWeight in Message 8

Sets the weight for this purge plugin.

Parameters

int $weight: The weight for this purge plugin.

Return value

$this

Overrides MessagePurgeInterface::setWeight

File

src/MessagePurgeBase.php, line 139

Class

MessagePurgeBase
Base implementation for MessagePurge plugins.

Namespace

Drupal\message

Code

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