src/Charcoal/Cms/Support/Traits/EventManagerAwareTrait.php
public function currentEvent()
    {
        if ($this->currentEvent) {
            return $this->currentEvent;
        }

        // The the current event
        $event = $this->eventManager()->entry();

        // Format the event
        if ($event) {
            $this->currentEvent = $this->eventFormatFull($event);
        }

        return $this->currentEvent;
    }
public function currentEvent()
    {
        if ($this->currentEvent) {
            return $this->currentEvent;
        }

        // The the current event
        $event = $this->eventManager()->entry();

        // Format the event
        if ($event) {
            $this->currentEvent = $this->eventFormatFull($event);
        }

        return $this->currentEvent;
    }
public function currentEvent ( ) { if ( $ this -> currentEvent ) { return $ this -> currentEvent ; } // The the current event $ event = $ this -> eventManager ( ) -> entry ( ) ; // Format the event if ( $ event ) { $ this -> currentEvent = $ this -> eventFormatFull ( $ event ) ; } return $ this -> currentEvent ; }
Current event.
@return array The properties of the current event.
Current event .