function ContactForm::setWeight

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

File

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

Class

ContactForm
Defines the contact form entity.

Namespace

Drupal\contact\Entity

Code

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.