public function ExecutionContext::setNode in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/Context/ExecutionContext.php \Symfony\Component\Validator\Context\ExecutionContext::setNode()
- 8 core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::setNode()
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Context/ExecutionContext.php \Symfony\Component\Validator\Context\ExecutionContext::setNode()
Sets the currently validated value.
@internal Used by the validator engine. Should not be called by user code.
Parameters
mixed $value The validated value:
object|null $object The currently validated object:
MetadataInterface|null $metadata The validation metadata:
string $propertyPath The property path to the current value:
Overrides ExecutionContextInterface::setNode
File
- vendor/
symfony/ validator/ Context/ ExecutionContext.php, line 159
Class
- ExecutionContext
- The context used and created by {@link ExecutionContextFactory}.
Namespace
Symfony\Component\Validator\ContextCode
public function setNode($value, $object, MetadataInterface $metadata = null, $propertyPath) {
$this->value = $value;
$this->object = $object;
$this->metadata = $metadata;
$this->propertyPath = (string) $propertyPath;
}