public function TestNodeContext::setNode in Component blocks 1.0.x
Same name and namespace in other branches
- 1.x tests/modules/component_blocks_test/src/TestNodeContext.php \Drupal\component_blocks_test\TestNodeContext::setNode()
- 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_testCode
public function setNode(NodeInterface $node) : void {
$this->node = $node;
}