interface ExpressionManagerInterface in Rules 8.3
Defines an interface for the expression plugin manager.
Hierarchy
- interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
- interface \Drupal\rules\Engine\ExpressionManagerInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
Expanded class hierarchy of ExpressionManagerInterface
All classes that implement ExpressionManagerInterface
11 files declare their use of ExpressionManagerInterface
- AddExpressionForm.php in src/
Form/ AddExpressionForm.php - EventComponentResolver.php in src/
ComponentResolver/ EventComponentResolver.php - ReactionRuleAddForm.php in src/
Form/ ReactionRuleAddForm.php - ReactionRuleEditForm.php in src/
Form/ ReactionRuleEditForm.php - RuleExpression.php in src/
Plugin/ RulesExpression/ RuleExpression.php
File
- src/
Engine/ ExpressionManagerInterface.php, line 11
Namespace
Drupal\rules\EngineView source
interface ExpressionManagerInterface extends PluginManagerInterface {
/**
* {@inheritdoc}
*
* @return \Drupal\rules\Engine\ExpressionInterface
* A fully configured plugin instance.
*/
public function createInstance($plugin_id, array $configuration = []);
/**
* Creates a new rule.
*
* @param \Drupal\rules\Context\ContextConfig $configuration
* (optional) The context configuration used to create the plugin instance.
*
* @return \Drupal\rules\Engine\RuleExpressionInterface
* The created rule.
*/
public function createRule(ContextConfig $configuration = NULL);
/**
* Creates a new action set.
*
* @param \Drupal\rules\Context\ContextConfig $configuration
* (optional) The context configuration used to create the plugin instance.
*
* @return \Drupal\rules\Plugin\RulesExpression\ActionSetExpression
* The created action set.
*/
public function createActionSet(ContextConfig $configuration = NULL);
/**
* Creates a new action expression.
*
* @param string $id
* The action plugin id.
* @param \Drupal\rules\Context\ContextConfig $configuration
* (optional) The context configuration used to create the plugin instance.
*
* @return \Drupal\rules\Engine\ActionExpressionInterface
* The created action expression.
*/
public function createAction($id, ContextConfig $configuration = NULL);
/**
* Creates a new condition expression.
*
* @param string $id
* The condition plugin id.
* @param \Drupal\rules\Context\ContextConfig $configuration
* (optional) The context configuration used to create the plugin instance.
*
* @return \Drupal\rules\Engine\ConditionExpressionInterface
* The created condition expression.
*/
public function createCondition($id, ContextConfig $configuration = NULL);
/**
* Creates a new 'and' condition container.
*
* @return \Drupal\rules\Engine\ConditionExpressionContainerInterface
* The created 'and' condition container.
*/
public function createAnd();
/**
* Creates a new 'or' condition container.
*
* @return \Drupal\rules\Engine\ConditionExpressionContainerInterface
* The created 'or' condition container.
*/
public function createOr();
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DiscoveryInterface:: |
public | function | Gets a specific plugin definition. | 4 |
DiscoveryInterface:: |
public | function | Gets the definition of all plugins for this type. | 3 |
DiscoveryInterface:: |
public | function | Indicates if a specific plugin definition exists. | 2 |
ExpressionManagerInterface:: |
public | function | Creates a new action expression. | 1 |
ExpressionManagerInterface:: |
public | function | Creates a new action set. | 1 |
ExpressionManagerInterface:: |
public | function | Creates a new 'and' condition container. | 1 |
ExpressionManagerInterface:: |
public | function | Creates a new condition expression. | 1 |
ExpressionManagerInterface:: |
public | function |
Overrides FactoryInterface:: |
1 |
ExpressionManagerInterface:: |
public | function | Creates a new 'or' condition container. | 1 |
ExpressionManagerInterface:: |
public | function | Creates a new rule. | 1 |
MapperInterface:: |
public | function | Gets a preconfigured instance of a plugin. | 4 |