MODULE_AUTOLOAD_TEST_CONSTANT

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/module_autoload_test/module_autoload_test.module \MODULE_AUTOLOAD_TEST_CONSTANT
  2. 10 core/modules/system/tests/modules/module_autoload_test/module_autoload_test.module \MODULE_AUTOLOAD_TEST_CONSTANT
  3. 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.