class TestLocalTaskController

Same name in other branches
  1. 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
  2. 10 core/modules/content_moderation/tests/modules/content_moderation_test_local_task/src/Controller/TestLocalTaskController.php \Drupal\content_moderation_test_local_task\Controller\TestLocalTaskController
  3. 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

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\Controller
View 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.