function ExpressionManagerInterface::createRule
Creates a new rule.
Parameters
\Drupal\rules\Context\ContextConfig $configuration: (optional) The context configuration used to create the plugin instance.
Return value
\Drupal\rules\Engine\RuleExpressionInterface The created rule.
1 method overrides ExpressionManagerInterface::createRule()
- ExpressionManager::createRule in src/
Engine/ ExpressionManager.php - Creates a new rule.
File
-
src/
Engine/ ExpressionManagerInterface.php, line 30
Class
- ExpressionManagerInterface
- Defines an interface for the expression plugin manager.
Namespace
Drupal\rules\EngineCode
public function createRule(ContextConfig $configuration = NULL);