You are here

public function CookieCategory::setWeight in EU Cookie Compliance (GDPR Compliance) 2.0.x

Same name and namespace in other branches
  1. 8 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\Entity

Code

public function setWeight($weight) {
  $this
    ->set('weight', $weight);
  return $this;
}