TestLocalTaskController.php in Drupal 8
Same filename and directory in other branches
File
core/modules/content_moderation/tests/modules/content_moderation_test_local_task/src/Controller/TestLocalTaskController.phpView source
<?php
namespace Drupal\content_moderation_test_local_task\Controller;
/**
* A test controller.
*/
class TestLocalTaskController {
/**
* A method which does not hint the node parameter to avoid upcasting.
*/
public function methodWithoutUpcastNode($node) {
return [
'#markup' => 'It works!',
];
}
}
Classes
Name | Description |
---|---|
TestLocalTaskController | A test controller. |