function ExecutionMetadataState::create
Overrides ExecutionMetadataStateInterface::create
3 calls to ExecutionMetadataState::create()
- PrepareExecutionMetadataStateTest::testAddingVariable in tests/
src/ Unit/ Integration/ Engine/ PrepareExecutionMetadataStateTest.php - Tests that a variable can be added by an action and is then available.
- PrepareExecutionMetadataStateTest::testPreparingUntil in tests/
src/ Unit/ Integration/ Engine/ PrepareExecutionMetadataStateTest.php - Tests partial state setup until an expression is reached in the tree.
- RulesComponent::getMetadataState in src/
Engine/ RulesComponent.php - Gets the metadata state with all context definitions as variables in it.
File
-
src/
Context/ ExecutionMetadataState.php, line 28
Class
- ExecutionMetadataState
- The state used during configuration time holding data definitions.
Namespace
Drupal\rules\ContextCode
public static function create(array $data_definitions = []) {
return new static($data_definitions);
}