You are here

public function ExecutionContext::setNode in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::setNode()

File

core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php, line 134

Class

ExecutionContext
Defines an execution context class.

Namespace

Drupal\Core\TypedData\Validation

Code

public function setNode($value, $object, MetadataInterface $metadata = NULL, $propertyPath) {
  $this->value = $value;
  $this->data = $object;
  $this->metadata = $metadata;
  $this->propertyPath = (string) $propertyPath;
}