You are here

public function AdministrationLanguageNegotiationConditionBase::getWeight in Administration Language Negotiation 8

Returns the weight of the plugin.

If the weight is not set, returns 0.

Return value

int The weight of the plugin.

Overrides AdministrationLanguageNegotiationConditionInterface::getWeight

File

src/AdministrationLanguageNegotiationConditionBase.php, line 59

Class

AdministrationLanguageNegotiationConditionBase
Base class for administration language administration condition.

Namespace

Drupal\administration_language_negotiation

Code

public function getWeight() {
  return !empty($this->weight) ? $this->weight : 0;
}