function Error::currentErrorHandler
Returns the current PHP error handler as a callable.
Return value
callable|null The current error handler as a callable, or NULL if none is set.
Deprecated
in drupal:11.3.0 and is removed from drupal:13.0.0. Use get_error_handler() instead.
See also
https://www.drupal.org/node/3529500
File
-
core/
lib/ Drupal/ Core/ Utility/ Error.php, line 220
Class
- Error
- Drupal error utility class.
Namespace
Drupal\Core\UtilityCode
public static function currentErrorHandler() : ?callable {
@trigger_error(__METHOD__ . ' is deprecated in drupal:11.3.0 and is removed from drupal:13.0.0. Use get_error_handler() instead. See https://www.drupal.org/node/3529500', E_USER_DEPRECATED);
return get_error_handler();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.