You are here

public function ProtectionRuleInterface::getProtections in User protect 8

Returns the user protections for this protection rule.

Return value

\Drupal\userprotect\Plugin\UserProtection\UserProtectionPluginCollection|\Drupal\userprotect\Plugin\UserProtection\UserProtectionInterface[] The user protection plugin collection.

1 method overrides ProtectionRuleInterface::getProtections()
ProtectionRule::getProtections in src/Entity/ProtectionRule.php
Returns the user protections for this protection rule.

File

src/Entity/ProtectionRuleInterface.php, line 81

Class

ProtectionRuleInterface
Provides an interface defining a userprotect_rule entity.

Namespace

Drupal\userprotect\Entity

Code

public function getProtections();