Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. VarDumper.php

function VarDumper::setHandler

1 call to VarDumper::setHandler()
DumpListener::configure in vendor/symfony/http-kernel/EventListener/DumpListener.php

File

vendor/symfony/var-dumper/VarDumper.php, line 49

Class

VarDumper
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\VarDumper

Code

public static function setHandler(?callable $callable) : ?callable {
    $prevHandler = self::$handler;
    // Prevent replacing the handler with expected format as soon as the env var was set:
    if (isset($_SERVER['VAR_DUMPER_FORMAT'])) {
        return $prevHandler;
    }
    self::$handler = $callable;
    return $prevHandler;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal