MODULE_AUTOLOAD_TEST_CONSTANT
Same name in other branches
- 9 core/modules/system/tests/modules/module_autoload_test/module_autoload_test.module \MODULE_AUTOLOAD_TEST_CONSTANT
- 10 core/modules/system/tests/modules/module_autoload_test/module_autoload_test.module \MODULE_AUTOLOAD_TEST_CONSTANT
- 11.x core/modules/system/tests/modules/module_autoload_test/module_autoload_test.module \MODULE_AUTOLOAD_TEST_CONSTANT
1 use of MODULE_AUTOLOAD_TEST_CONSTANT
- ClassLoaderTest::testAutoloadFromModuleFile in core/
modules/ system/ tests/ src/ Functional/ Module/ ClassLoaderTest.php - Tests that .module files can use class constants in main section.
File
-
core/
modules/ system/ tests/ modules/ module_autoload_test/ module_autoload_test.module, line 10
Code
define('MODULE_AUTOLOAD_TEST_CONSTANT', SomeClass::TEST);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.