function DeprecationHandler::isEnabled

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/TestTools/Extension/DeprecationBridge/DeprecationHandler.php \Drupal\TestTools\Extension\DeprecationBridge\DeprecationHandler::isEnabled()

Determines if the extension is enabled.

Return value

bool TRUE if enabled, FALSE if disabled.

2 calls to DeprecationHandler::isEnabled()
BootstrapErrorHandler::__invoke in core/tests/Drupal/TestTools/ErrorHandler/BootstrapErrorHandler.php
Executes when the object is called as a function.
DrupalTestCaseTrait::checkErrorHandlerOnTearDown in core/tests/Drupal/Tests/DrupalTestCaseTrait.php
Checks the test error handler after test execution.

File

core/tests/Drupal/TestTools/Extension/DeprecationBridge/DeprecationHandler.php, line 76

Class

DeprecationHandler
Drupal's PHPUnit extension to manage code deprecation.

Namespace

Drupal\TestTools\Extension\DeprecationBridge

Code

public static function isEnabled() : bool {
  return self::$enabled;
}

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