/** * Process loaded collection data * * @return $this */ protected function _afterLoadData() { parent::_afterLoadData(); $this->addCustomerTaxClassesToResult(); $this->addProductTaxClassesToResult(); $this->addRatesToResult(); return $this; }
/** * Ad information about attribute sets to collection result data * * @return \Magento\Framework\Model\ModelResource\Db\Collection\AbstractCollection */ protected function _afterLoadData() { $this->_addSetInfo(); return parent::_afterLoadData(); }
/** * @return $this */ protected function _afterLoadData() { parent::_afterLoadData(); if ($this->_addDaysInWishlist) { $gmtOffset = (int) $this->_date->getGmtOffset(); $nowTimestamp = $this->_date->timestamp(); foreach ($this as $wishlistItem) { $wishlistItemTimestamp = $this->_date->timestamp($wishlistItem->getAddedAt()); $wishlistItem->setDaysInWishlist((int) (($nowTimestamp - $gmtOffset - $wishlistItemTimestamp) / 24 / 60 / 60)); } } return $this; }