You are here

public function RulesActionUserAclDeriver::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/RulesActionUserAclDeriver.php, line 48

Class

RulesActionUserAclDeriver
Derives Content Access User plugin definitions.

Namespace

Drupal\content_access\Plugin\Deriver

Code

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