function ContextProviderTrait::getProvidedContextDefinitions

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 64

Class

ContextProviderTrait
A trait implementing the ContextProviderInterface.

Namespace

Drupal\rules\Context

Code

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