/** * Add custom options to product collection * * @return $this */ protected function _afterLoadCollection() { $this->getCollection()->addOptionsToResult(); return parent::_afterLoadCollection(); }
/** * @return void */ protected function _afterLoadCollection() { $this->getCollection()->walk('afterLoad'); parent::_afterLoadCollection(); }
/** * Save search results * * @return \Magento\Backend\Block\Widget\Grid */ protected function _afterLoadCollection() { /** @var $actionPager \Magento\Review\Helper\Action\Pager */ $actionPager = $this->_reviewActionPager; $actionPager->setStorageId('reviews'); $actionPager->setItems($this->getCollection()->getResultingIds()); return parent::_afterLoadCollection(); }