src/Charcoal/Cms/Support/Traits/NewsManagerAwareTrait.php
public function newsList()
    {
        $entries = $this->newsManager()->entries();
        foreach ($entries as $news) {
            yield $this->newsFormatShort($news);
        }
    }
public function newsList()
    {
        $entries = $this->newsManager()->entries();
        foreach ($entries as $news) {
            yield $this->newsFormatShort($news);
        }
    }
public function newsList ( ) { $ entries = $ this -> newsManager ( ) -> entries ( ) ; foreach ( $ entries as $ news ) { yield $ this -> newsFormatShort ( $ news ) ; } }
Formatted news list
Returns the entries for the current page.
@return \Generator|void
Formatted news list Returns the entries for the current page .