You are here

public function UserProtectionBase::getWeight in User protect 8

Returns the weight of the user protection.

Return value

int The protections' weight.

Overrides UserProtectionInterface::getWeight

File

src/Plugin/UserProtection/UserProtectionBase.php, line 55

Class

UserProtectionBase
Provides a base class for UserProtection plugins.

Namespace

Drupal\userprotect\Plugin\UserProtection

Code

public function getWeight() {
  return $this->pluginDefinition['weight'];
}