You are here

public function ExecutionContextInterface::getObject in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Context/ExecutionContextInterface.php \Symfony\Component\Validator\Context\ExecutionContextInterface::getObject()

Returns the currently validated object.

If the validator is currently validating a class constraint, the object of that class is returned. If it is a validating a property or getter constraint, the object that the property/getter belongs to is returned.

In other cases, null is returned.

Return value

object|null The currently validated object or null.

2 methods override ExecutionContextInterface::getObject()
ExecutionContext::getObject in vendor/symfony/validator/Context/ExecutionContext.php
Returns the currently validated object.
ExecutionContext::getObject in core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php
Returns the currently validated object.

File

vendor/symfony/validator/Context/ExecutionContextInterface.php, line 116

Class

ExecutionContextInterface
The context of a validation run.

Namespace

Symfony\Component\Validator\Context

Code

public function getObject();