public function Flag::setWeight in Flag 8.4
Set the flag's weight.
Parameters
int $weight: An int containing the flag weight to use.
Overrides FlagInterface::setWeight
File
- src/Entity/ Flag.php, line 452 
Class
- Flag
- Provides the Flag configuration entity.
Namespace
Drupal\flag\EntityCode
public function setWeight($weight) {
  $this->weight = $weight;
}