You are here

public function CookieCategory::getWeight in EU Cookie Compliance (GDPR Compliance) 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/CookieCategory.php \Drupal\eu_cookie_compliance\Entity\CookieCategory::getWeight()

Get this category's weight.

Return value

int The weight of this category.

Overrides CookieCategoryInterface::getWeight

File

src/Entity/CookieCategory.php, line 85

Class

CookieCategory
Defines the Cookie category entity.

Namespace

Drupal\eu_cookie_compliance\Entity

Code

public function getWeight() {
  return $this
    ->get('weight');
}