You are here

public function ContextProviderTrait::getProvidedContextDefinitions in Rules 8.3

See also

\Drupal\rules\Context\ContextProviderInterface

1 call to ContextProviderTrait::getProvidedContextDefinitions()
RulesComponentAction::execute in src/Plugin/RulesAction/RulesComponentAction.php
Executes the plugin.

File

src/Context/ContextProviderTrait.php, line 63

Class

ContextProviderTrait
A trait implementing the ContextProviderInterface.

Namespace

Drupal\rules\Context

Code

public function getProvidedContextDefinitions() {
  $definition = $this
    ->getPluginDefinition();
  return !empty($definition['provides']) ? $definition['provides'] : [];
}