You are here

public function RulesEventUserAclDeriver::getDerivativeDefinitions in Content Access 8

Gets the definition of all derivatives of a base plugin.

Parameters

array $base_plugin_definition: The definition array of the base plugin.

Return value

array An array of full derivative definitions keyed on derivative id.

Overrides DeriverBase::getDerivativeDefinitions

See also

getDerivativeDefinition()

File

src/Plugin/Deriver/RulesEventUserAclDeriver.php, line 42

Class

RulesEventUserAclDeriver
Derives 'User was added to ACL' plugin definition.

Namespace

Drupal\content_access\Plugin\Deriver

Code

public function getDerivativeDefinitions($base_plugin_definition) {
  if ($this->moduleHandler
    ->moduleExists('acl')) {
    $this->derivatives['content_access_user_acl'] = $base_plugin_definition;
  }
  return $this->derivatives;
}