You are here

interface ExpressionManagerInterface in Rules 8.3

Defines an interface for the expression plugin manager.

Hierarchy

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

... See full list

File

src/Engine/ExpressionManagerInterface.php, line 11

Namespace

Drupal\rules\Engine
View 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

Namesort descending Modifiers Type Description Overrides
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 4
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 2
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 Overrides FactoryInterface::createInstance 1
ExpressionManagerInterface::createOr public function Creates a new 'or' condition container. 1
ExpressionManagerInterface::createRule public function Creates a new rule. 1
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 4