You are here

public function ProtectionRuleInterface::enableProtection in User protect 8

Enables a certain protection.

Parameters

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

Return value

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

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

File

src/Entity/ProtectionRuleInterface.php, line 105

Class

ProtectionRuleInterface
Provides an interface defining a userprotect_rule entity.

Namespace

Drupal\userprotect\Entity

Code

public function enableProtection($instance_id);