public function RulesEventHandlerInterface::getContextDefinition in Rules 8.3
Gets a specific context definition of the plugin.
Parameters
string $name: The name of the context in the plugin definition.
Return value
\Drupal\rules\Context\ContextDefinitionInterface The definition against which the context value must validate.
Throws
\Drupal\Component\Plugin\Exception\PluginException If the requested context is not defined.
1 method overrides RulesEventHandlerInterface::getContextDefinition()
- RulesDefaultEventHandler::getContextDefinition in src/
Core/ RulesDefaultEventHandler.php - Gets a specific context definition of the plugin.
File
- src/
Core/ RulesEventHandlerInterface.php, line 37
Class
- RulesEventHandlerInterface
- Interface for Rules event handlers.
Namespace
Drupal\rules\CoreCode
public function getContextDefinition($name);