public function ProtectionRuleInterface::setPluginConfig in User protect 8
Sets the configuration for a user protection plugin instance.
Parameters
string $instance_id: The ID of a user protection plugin to set the configuration for.
array $configuration: The user protection plugin configuration to set.
Return value
\Drupal\userprotect\Entity\ProtectionRuleInterface The called protection rule entity.
1 method overrides ProtectionRuleInterface::setPluginConfig()
- ProtectionRule::setPluginConfig in src/
Entity/ ProtectionRule.php - Sets the configuration for a user protection plugin instance.
File
- src/
Entity/ ProtectionRuleInterface.php, line 94
Class
- ProtectionRuleInterface
- Provides an interface defining a userprotect_rule entity.
Namespace
Drupal\userprotect\EntityCode
public function setPluginConfig($instance_id, array $configuration);