You are here

public function ContactForm::setWeight in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/contact/src/Entity/ContactForm.php \Drupal\contact\Entity\ContactForm::setWeight()

Sets the weight.

Parameters

int $weight: The desired weight.

Return value

$this

Overrides ContactFormInterface::setWeight

File

core/modules/contact/src/Entity/ContactForm.php, line 189

Class

ContactForm
Defines the contact form entity.

Namespace

Drupal\contact\Entity

Code

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