public function getPosts()
{
if (!$this->hasData('posts')) {
$posts = $this->_postCollectionFactory->create()->addOrder(
PostInterface::CREATED,
PostCollection::SORT_ORDER_DESC
);
$this->setData('posts', $posts);
}
return $this->getData('posts');
}
in magento 1.x i had custom quick block which had "page/html_pager" type but I can't find in magento 2 documentation a way to paginate my entities ...quickpayportal I fetch them from my block controller (code above).