You are here

public function ContactForm::getWeight in Drupal 10

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

Returns the weight of this category (used for sorting).

Return value

int The weight of this category.

Overrides ContactFormInterface::getWeight

File

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

Class

ContactForm
Defines the contact form entity.

Namespace

Drupal\contact\Entity

Code

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