public function LanguageCookieConditionBase::getWeight in Language Cookie 8
Returns the weight of the plugin.
If the weight is not set, returns 0.
Return value
int The weight of the plugin.
Overrides LanguageCookieConditionInterface::getWeight
File
- src/
LanguageCookieConditionBase.php, line 94
Class
- LanguageCookieConditionBase
- Base class for language cookie condition.
Namespace
Drupal\language_cookieCode
public function getWeight() {
return !empty($this->weight) ? $this->weight : 0;
}