Neos\Neos\EventLog\Domain\Service\EventEmittingService::add PHP Method

add() public method

This only happens for top-level-events. All events which are attached to some parent event are persisted together with the parent.
See also: emit()
public add ( Event $nodeEvent ) : void
$nodeEvent Neos\Neos\EventLog\Domain\Model\Event
return void
    public function add(Event $nodeEvent)
    {
        if (!$this->isEnabled()) {
            throw new Exception('Event log not enabled', 1418464935);
        }
        if ($nodeEvent->getParentEvent() === null) {
            $this->eventRepository->add($nodeEvent);
        }
    }