/** * Invalidate Indexer * * @return $this */ public function invalidateIndexer() { foreach ($this->_processFactory->create() as $process) { $process->changeStatus(\Magento\Index\Model\Process::STATUS_REQUIRE_REINDEX); } return $this; }
/** * @return \Magento\Index\Model\Resource\Process\Collection */ private function _createCollection() { return $this->_collectionFactory->create(); }
/** * Prepare grid collection * * @return $this */ protected function _prepareCollection() { $this->setCollection($this->_collectionFactory->create()); parent::_prepareCollection(); return $this; }