public function CookieCategory::setWeight in EU Cookie Compliance (GDPR Compliance) 8
Same name and namespace in other branches
- 2.0.x src/Entity/CookieCategory.php \Drupal\eu_cookie_compliance\Entity\CookieCategory::setWeight()
Sets the weight of this category.
Parameters
int $weight: The weight to set.
Return value
\Drupal\eu_cookie_compliance\Entity\CookieCategoryInterface The called class instance.
Overrides CookieCategoryInterface::setWeight
File
- src/
Entity/ CookieCategory.php, line 92
Class
- CookieCategory
- Defines the Cookie category entity.
Namespace
Drupal\eu_cookie_compliance\EntityCode
public function setWeight($weight) {
$this
->set('weight', $weight);
return $this;
}