Beispiel #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;
 }
Beispiel #2
0
 /**
  * @return \Magento\Index\Model\Resource\Process\Collection
  */
 private function _createCollection()
 {
     return $this->_collectionFactory->create();
 }
Beispiel #3
0
 /**
  * Prepare grid collection
  *
  * @return $this
  */
 protected function _prepareCollection()
 {
     $this->setCollection($this->_collectionFactory->create());
     parent::_prepareCollection();
     return $this;
 }