public function TestControllers::testNodeSetParent

1 string reference to 'TestControllers::testNodeSetParent'
paramconverter_test.routing.yml in drupal/core/modules/system/tests/modules/paramconverter_test/paramconverter_test.routing.yml
drupal/core/modules/system/tests/modules/paramconverter_test/paramconverter_test.routing.yml

File

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

Class

TestControllers
Controller routine for testing the paramconverter.

Namespace

Drupal\paramconverter_test

Code

public function testNodeSetParent(EntityInterface $node, EntityInterface $parent) {
  return "Setting '{$parent->title}' as parent of '{$node->title}'.";
}