public function TestControllers::testUserNodeFoo

1 string reference to 'TestControllers::testUserNodeFoo'

File

drupal/core/modules/system/tests/modules/paramconverter_test/lib/Drupal/paramconverter_test/TestControllers.php, line 17
Contains Drupal\paramconverter_test\TestControllers.

Class

TestControllers
Controller routine for testing the paramconverter.

Namespace

Drupal\paramconverter_test

Code

public function testUserNodeFoo($user, $node, $foo) {
  $retval = "user: " . (is_object($user) ? $user
    ->label() : $user);
  $retval .= ", node: " . (is_object($node) ? $node
    ->label() : $node);
  $retval .= ", foo: " . (is_object($foo) ? $foo
    ->label() : $foo);
  return $retval;
}