public function UserProtectionPluginCollection::getConfiguration in User protect 8
Gets the current configuration of all plugins in this collection.
Return value
array An array of up-to-date plugin configuration.
Overrides DefaultLazyPluginCollection::getConfiguration
File
- src/
Plugin/ UserProtection/ UserProtectionPluginCollection.php, line 108
Class
- UserProtectionPluginCollection
- A collection of protection rules.
Namespace
Drupal\userprotect\Plugin\UserProtectionCode
public function getConfiguration() {
$configuration = parent::getConfiguration();
// Remove disabled protections.
foreach ($configuration as $instance_id => $instance_config) {
if (empty($instance_config['status'])) {
unset($configuration[$instance_id]);
}
}
return $configuration;
}