public function TestControllers::testNodeSetParent in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/paramconverter_test/src/TestControllers.php \Drupal\paramconverter_test\TestControllers::testNodeSetParent()
- 10 core/modules/system/tests/modules/paramconverter_test/src/TestControllers.php \Drupal\paramconverter_test\TestControllers::testNodeSetParent()
1 string reference to 'TestControllers::testNodeSetParent'
- paramconverter_test.routing.yml in core/
modules/ system/ tests/ modules/ paramconverter_test/ paramconverter_test.routing.yml - core/modules/system/tests/modules/paramconverter_test/paramconverter_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ paramconverter_test/ src/ TestControllers.php, line 18
Class
- TestControllers
- Controller routine for testing the paramconverter.
Namespace
Drupal\paramconverter_testCode
public function testNodeSetParent(NodeInterface $node, NodeInterface $parent) {
return [
'#markup' => "Setting '{$parent->label()}' as parent of '{$node->label()}'.",
];
}