function DeprecationHandler::isEnabled

Determines if the extension is enabled.

Return value

bool TRUE if enabled, FALSE if disabled.

11 calls to DeprecationHandler::isEnabled()
BootstrapErrorHandler::__invoke in core/tests/Drupal/TestTools/ErrorHandler/BootstrapErrorHandler.php
Executes when the object is called as a function.
DeprecationHandler::collectActualDeprecation in core/tests/Drupal/TestTools/Extension/DeprecationBridge/DeprecationHandler.php
Collects an actual deprecation.
DeprecationHandler::expectDeprecation in core/tests/Drupal/TestTools/Extension/DeprecationBridge/DeprecationHandler.php
Adds an expected deprecation.
DeprecationHandler::getCollectedDeprecations in core/tests/Drupal/TestTools/Extension/DeprecationBridge/DeprecationHandler.php
Returns all collected deprecations.
DeprecationHandler::getExpectedDeprecations in core/tests/Drupal/TestTools/Extension/DeprecationBridge/DeprecationHandler.php
Returns all expected deprecations.

... See full list

File

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

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.