Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
/** * Declare link model and initialize type attributes join * * @param \Magento\Catalog\Model\Product\Link $linkModel * @return $this */ public function setLinkModel(\Magento\Catalog\Model\Product\Link $linkModel) { $this->_linkModel = $linkModel; if ($linkModel->getLinkTypeId()) { $this->_linkTypeId = $linkModel->getLinkTypeId(); } return $this; }