TestInvalidFormNamespaceController.php

Same filename and directory in other branches
  1. 11.x core/modules/system/tests/modules/router_test_directory/src/Form/TestInvalidFormNamespaceController.php

Namespace

Drupal\router_test\Form

File

core/modules/system/tests/modules/router_test_directory/src/Form/TestInvalidFormNamespaceController.php

View source
<?php

declare (strict_types=1);
namespace Drupal\router_test\Form;

use Symfony\Component\Routing\Attribute\Route;

/**
 * Test class that does not implement FormInterface.
 *
 * Any class that is in the Form namespace and does not implement FormInterface
 * will not be discoverable for form routes, even with the attribute.
 */
class TestInvalidFormNamespaceController {

}

Classes

Title Deprecated Summary
TestInvalidFormNamespaceController Test class that does not implement FormInterface.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.