/** * Add filter by entity type id to collection * * @return \Magento\Framework\Model\Resource\Db\Collection\AbstractCollection|$this */ protected function _initSelect() { parent::_initSelect(); $this->setEntityTypeFilter($this->_registryManager->registry('entityType')); return $this; }