interface ExpressionManagerInterface
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 extends \Drupal\Component\Plugin\Discovery\DiscoveryInterface \Drupal\Component\Plugin\Factory\FactoryInterface \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\rules\Engine\ExpressionManagerInterface extends \Drupal\Component\Plugin\PluginManagerInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface extends \Drupal\Component\Plugin\Discovery\DiscoveryInterface \Drupal\Component\Plugin\Factory\FactoryInterface \Drupal\Component\Plugin\Mapper\MapperInterface
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
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
ExpressionManagerInterface::createAction | public | function | Creates a new action expression. | 1 |
ExpressionManagerInterface::createActionSet | public | function | Creates a new action set. | 1 |
ExpressionManagerInterface::createAnd | public | function | Creates a new 'and' condition container. | 1 |
ExpressionManagerInterface::createCondition | public | function | Creates a new condition expression. | 1 |
ExpressionManagerInterface::createInstance | public | function | ||
ExpressionManagerInterface::createOr | public | function | Creates a new 'or' condition container. | 1 |
ExpressionManagerInterface::createRule | public | function | Creates a new rule. | 1 |