You are here

public function ProtectionRuleInterface::disableProtection in User protect 8

Disables a certain protection.

Parameters

string $instance_id: The ID of a user protection plugin to disable.

Return value

\Drupal\userprotect\Entity\ProtectionRuleInterface The called protection rule entity.

1 method overrides ProtectionRuleInterface::disableProtection()
ProtectionRule::disableProtection in src/Entity/ProtectionRule.php
Disables a certain protection.

File

src/Entity/ProtectionRuleInterface.php, line 116

Class

ProtectionRuleInterface
Provides an interface defining a userprotect_rule entity.

Namespace

Drupal\userprotect\Entity

Code

public function disableProtection($instance_id);