function get_defined_functions

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Theme/RegistryTest.php \Drupal\Tests\Core\Theme\get_defined_functions()
  2. 10 core/tests/Drupal/Tests/Core/Theme/RegistryTest.php \Drupal\Tests\Core\Theme\get_defined_functions()
  3. 11.x core/tests/Drupal/Tests/Core/Theme/RegistryTest.php \Drupal\Tests\Core\Theme\get_defined_functions()

Overrides get_defined_functions() with a configurable mock.

File

core/tests/Drupal/Tests/Core/Theme/RegistryTest.php, line 520

Namespace

Drupal\Tests\Core\Theme

Code

function get_defined_functions() {
    return RegistryTest::$functions ?: \get_defined_functions();
}

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