function ContactFormInterface::setWeight
Same name in other branches
- 9 core/modules/contact/src/ContactFormInterface.php \Drupal\contact\ContactFormInterface::setWeight()
- 10 core/modules/contact/src/ContactFormInterface.php \Drupal\contact\ContactFormInterface::setWeight()
- 11.x core/modules/contact/src/ContactFormInterface.php \Drupal\contact\ContactFormInterface::setWeight()
Sets the weight.
Parameters
int $weight: The desired weight.
Return value
$this
1 method overrides ContactFormInterface::setWeight()
- ContactForm::setWeight in core/
modules/ contact/ src/ Entity/ ContactForm.php - Sets the weight.
File
-
core/
modules/ contact/ src/ ContactFormInterface.php, line 110
Class
- ContactFormInterface
- Provides an interface defining a contact form entity.
Namespace
Drupal\contactCode
public function setWeight($weight);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.