ContactForm::setWeight

public ContactForm::setWeight($weight)

Sets the weight.

Parameters

int $weight: The desired weight.

Return value

$this

Overrides ContactFormInterface::setWeight

File

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

Class

ContactForm
Defines the contact form entity.

Namespace

Drupal\contact\Entity

Code

1
2
3
4
public function setWeight($weight) {
  $this->weight = $weight;
  return $this;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.