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

        // The the current news
        $news = $this->newsManager()->entry();

        // Format the news if there's any
        if ($news) {
            $this->currentNews = $this->newsFormatFull($news);
        }

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

        // The the current news
        $news = $this->newsManager()->entry();

        // Format the news if there's any
        if ($news) {
            $this->currentNews = $this->newsFormatFull($news);
        }

        return $this->currentNews;
    }
public function currentNews ( ) { if ( $ this -> currentNews ) { return $ this -> currentNews ; } // The the current news $ news = $ this -> newsManager ( ) -> entry ( ) ; // Format the news if there's any if ( $ news ) { $ this -> currentNews = $ this -> newsFormatFull ( $ news ) ; } return $ this -> currentNews ; }
Current news.
@return array The properties of the current news
Current news .