You are here

public function ProtectionRule::getPluginCollections in User protect 8

Gets the plugin collections used by this object.

Return value

\Drupal\Component\Plugin\LazyPluginCollection[] An array of plugin collections, keyed by the property name they use to store their configuration.

Overrides ObjectWithPluginCollectionInterface::getPluginCollections

File

src/Entity/ProtectionRule.php, line 188

Class

ProtectionRule
Defines the Protection rule entity.

Namespace

Drupal\userprotect\Entity

Code

public function getPluginCollections() {
  return [
    'protections' => $this
      ->getProtections(),
  ];
}