public function LingotekProfile::setWeight in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 8 src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWeight()
- 8.2 src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWeight()
- 4.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWeight()
- 3.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWeight()
- 3.1.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWeight()
- 3.2.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWeight()
- 3.3.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWeight()
- 3.5.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWeight()
- 3.6.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWeight()
- 3.7.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWeight()
- 3.8.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWeight()
Sets the weight of the profile.
Parameters
int $weight: The weight, used to order profiles with larger positive weights sinking items toward the bottom of lists.
Return value
$this
Overrides LingotekProfileInterface::setWeight
File
- src/
Entity/ LingotekProfile.php, line 679
Class
- LingotekProfile
- Defines the LingotekProfile entity.
Namespace
Drupal\lingotek\EntityCode
public function setWeight($weight) {
$this->weight = $weight;
return $this;
}