protected function dispatchSlotsEvent($baseEventName, Page $page, array $slots)
    {
        $eventNames = $this->generateEventNames($baseEventName, $page);
        $event = new SlotsRenderingEvent($slots);
        foreach($eventNames as $eventName) {
            $event = Dispatcher::dispatch($eventName, $event);
        }

        return $event->getSlots();
    }
protected function dispatchSlotsEvent($baseEventName, Page $page, array $slots)
    {
        $eventNames = $this->generateEventNames($baseEventName, $page);
        $event = new SlotsRenderingEvent($slots);
        foreach($eventNames as $eventName) {
            $event = Dispatcher::dispatch($eventName, $event);
        }

        return $event->getSlots();
    }
protected function dispatchSlotsEvent ( $ baseEventName , Page $ page , array $ slots ) { $ eventNames = $ this -> generateEventNames ( $ baseEventName , $ page ) ; $ event = new SlotsRenderingEvent ( $ slots ) ; foreach ( $ eventNames as $ eventName ) { $ event = Dispatcher :: dispatch ( $ eventName , $ event ) ; } return $ event -> getSlots ( ) ; }
Dispatches the events

@param $baseEventName
@param \RedKiteCms\FilesystemEntity\Page $page
@param array $slots

@return array
Dispatches the events