You are here

class TestLocalTaskController in Drupal 8

Same name and namespace in other branches
  1. 9 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

Namesort descending Modifiers Type Description Overrides
TestLocalTaskController::methodWithoutUpcastNode public function A method which does not hint the node parameter to avoid upcasting.