You are here

public function ContextProviderInterface::getProvidedContext in Rules 8.3

Gets a defined provided context.

Parameters

string $name: The name of the provided context in the plugin definition.

Return value

\Drupal\Core\Plugin\Context\ContextInterface The context object.

Throws

\Drupal\Component\Plugin\Exception\PluginException If the requested provided context is not set.

File

src/Context/ContextProviderInterface.php, line 41

Class

ContextProviderInterface
Interface for plugins that provide context.

Namespace

Drupal\rules\Context

Code

public function getProvidedContext($name);