public function FlagInterface::setWeight in Flag 8.4
Set the flag's weight.
Parameters
int $weight: An int containing the flag weight to use.
1 method overrides FlagInterface::setWeight()
- Flag::setWeight in src/
Entity/ Flag.php - Set the flag's weight.
File
- src/
FlagInterface.php, line 249
Class
- FlagInterface
- Defines the interface for Flag entities.
Namespace
Drupal\flagCode
public function setWeight($weight);