function 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\EntityCode
public function setWeight($weight) {
  $this->weight = $weight;
  return $this;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
