function ExecutionState::create
Creates the object.
Parameters
\Drupal\Core\TypedData\TypedDataInterface[] $variables: (optional) Variables to initialize this state with.
Return value
static
6 calls to ExecutionState::create()
- ExpressionBase::execute in src/
Engine/ ExpressionBase.php - Executes a rules expression.
- GenericEventSubscriber::onRulesEvent in src/
EventSubscriber/ GenericEventSubscriber.php - Reacts on the given event and invokes configured reaction rules.
- RulesComponent::executeWithArguments in src/
Engine/ RulesComponent.php - Executes the component with the given values.
- RulesComponent::__construct in src/
Engine/ RulesComponent.php - Constructs the object.
- RulesEngineTest::testActionProvidedContext in tests/
src/ Kernel/ RulesEngineTest.php - Tests that multiple actions can consume and provide context variables.
File
-
src/
Context/ ExecutionState.php, line 63
Class
- ExecutionState
- The rules execution state.
Namespace
Drupal\rules\ContextCode
public static function create(array $variables = []) {
return new static($variables);
}