src/Event/EventTarget.php
/**
     * Dispatches an event at the current EventTarget, which will then invoke
     * any event listeners on the node and its ancestors.
     */
Dispatches an event at the current EventTarget, which will then invoke
any event listeners on the node and its ancestors.
Dispatches an event at the current EventTarget which will then invoke any event listeners on the node and its ancestors .
public function dispatchEvent(Event $event): bool
    {
        $flags = $event->getFlags();
        if ($flags & EventFlags::DISPATCH || !($flags & EventFlags::INITIALIZED)) {
            throw new InvalidStateError();
        }
        $event->setIsTrusted(false);
        return $this->doDispatchEvent($event, $this);
    }
public function dispatchEvent ( Event $ event ) : bool { $ flags = $ event -> getFlags ( ) ; if ( $ flags & EventFlags :: DISPATCH || ! ( $ flags & EventFlags :: INITIALIZED ) ) { throw new InvalidStateError ( ) ; } $ event -> setIsTrusted ( false ) ; return $ this -> doDispatchEvent ( $ event , $ this ) ; }
Dispatches an event at the current EventTarget, which will then invoke
 any event listeners on the node and its ancestors.
Dispatches an event at the current EventTarget which will then invoke any event listeners on the node and its ancestors .