function DeprecationHandler::getCollectedDeprecations
Returns all collected deprecations.
Return value
list<string> The collected deprecation messages.
1 call to DeprecationHandler::getCollectedDeprecations()
- ExpectDeprecationTrait::tearDownErrorHandler in core/
tests/ Drupal/ TestTools/ Extension/ DeprecationBridge/ ExpectDeprecationTrait.php - Tears down the test error handler.
File
-
core/
tests/ Drupal/ TestTools/ Extension/ DeprecationBridge/ DeprecationHandler.php, line 195
Class
- DeprecationHandler
- Drupal's PHPUnit extension to manage code deprecation.
Namespace
Drupal\TestTools\Extension\DeprecationBridgeCode
public static function getCollectedDeprecations() : array {
if (!self::isEnabled()) {
throw new \LogicException(__CLASS__ . ' is not initialized');
}
return self::$collectedDeprecations;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.