You are here

public function UserProtectionBase::setConfiguration in User protect 8

Sets the configuration for this plugin instance.

Parameters

array $configuration: An associative array containing the plugin's configuration.

Overrides ConfigurableInterface::setConfiguration

1 call to UserProtectionBase::setConfiguration()
UserProtectionBase::__construct in src/Plugin/UserProtection/UserProtectionBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

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

Class

UserProtectionBase
Provides a base class for UserProtection plugins.

Namespace

Drupal\userprotect\Plugin\UserProtection

Code

public function setConfiguration(array $configuration) {
  if (isset($configuration['status'])) {
    $this->status = (bool) $configuration['status'];
  }
  return $this;
}