class TestLocalTaskController
Same name in other branches
- 8.9.x core/modules/content_moderation/tests/modules/content_moderation_test_local_task/src/Controller/TestLocalTaskController.php \Drupal\content_moderation_test_local_task\Controller\TestLocalTaskController
- 10 core/modules/content_moderation/tests/modules/content_moderation_test_local_task/src/Controller/TestLocalTaskController.php \Drupal\content_moderation_test_local_task\Controller\TestLocalTaskController
- 11.x core/modules/content_moderation/tests/modules/content_moderation_test_local_task/src/Controller/TestLocalTaskController.php \Drupal\content_moderation_test_local_task\Controller\TestLocalTaskController
A test controller.
Hierarchy
- class \Drupal\content_moderation_test_local_task\Controller\TestLocalTaskController
Expanded class hierarchy of TestLocalTaskController
File
-
core/
modules/ content_moderation/ tests/ modules/ content_moderation_test_local_task/ src/ Controller/ TestLocalTaskController.php, line 8
Namespace
Drupal\content_moderation_test_local_task\ControllerView source
class TestLocalTaskController {
/**
* A method which does not hint the node parameter to avoid upcasting.
*/
public function methodWithoutUpcastNode($node) {
return [
'#markup' => 'It works!',
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestLocalTaskController::methodWithoutUpcastNode | public | function | A method which does not hint the node parameter to avoid upcasting. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.