You are here

public function TestNodeContext::setNode in Component blocks 1.x

Same name and namespace in other branches
  1. 1.0.x tests/modules/component_blocks_test/src/TestNodeContext.php \Drupal\component_blocks_test\TestNodeContext::setNode()
  2. 1.1.x tests/modules/component_blocks_test/src/TestNodeContext.php \Drupal\component_blocks_test\TestNodeContext::setNode()

Sets value of Node.

Parameters

\Drupal\node\NodeInterface $node: Value for Node.

File

tests/modules/component_blocks_test/src/TestNodeContext.php, line 54

Class

TestNodeContext
Defines a class for a test node context.

Namespace

Drupal\component_blocks_test

Code

public function setNode(NodeInterface $node) : void {
  $this->node = $node;
}