function TraceableEventDispatcher::isClosure

1 call to TraceableEventDispatcher::isClosure()
TraceableEventDispatcher::addCalledListener in webprofiler/src/EventDispatcher/TraceableEventDispatcher.php

File

webprofiler/src/EventDispatcher/TraceableEventDispatcher.php, line 210

Class

TraceableEventDispatcher
Class TraceableEventDispatcher

Namespace

Drupal\webprofiler\EventDispatcher

Code

private function isClosure($t) {
    return is_object($t) && $t instanceof \Closure;
}