public function PreferredFeatureInterface::setWeight in Open Social 10.3.x
Set the weight of this preferred feature.
Parameters
int $weight: An integer used to indicate ordering, with higher weights sinking: e.g. -1 will be above 0 and 1 will be below 0.
Return value
$this The class instance that this method is called on.
File
- modules/
social_features/ social_branding/ src/ PreferredFeatureInterface.php, line 36
Class
- PreferredFeatureInterface
- Provides an interface defining a preferred feature.
Namespace
Drupal\social_brandingCode
public function setWeight(int $weight) : self;