public function TestControllers::testUserNodeFoo in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/paramconverter_test/src/TestControllers.php \Drupal\paramconverter_test\TestControllers::testUserNodeFoo()
1 string reference to 'TestControllers::testUserNodeFoo'
- 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 - Contains \Drupal\paramconverter_test\TestControllers.
Class
- TestControllers
- Controller routine for testing the paramconverter.
Namespace
Drupal\paramconverter_testCode
public function testUserNodeFoo(EntityInterface $user, NodeInterface $node, $foo) {
$foo = is_object($foo) ? $foo
->label() : $foo;
return [
'#markup' => "user: {$user->label()}, node: {$node->label()}, foo: {$foo}",
];
}