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