class TestControllers

Controller routine for testing the paramconverter.

Hierarchy

Expanded class hierarchy of TestControllers

File

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

Namespace

Drupal\paramconverter_test
View source
class TestControllers {
  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;
  }
  public function testNodeSetParent(EntityInterface $node, EntityInterface $parent) {
    return "Setting '{$parent->title}' as parent of '{$node->title}'.";
  }

}

Members