예제 #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;
 }
예제 #2
0
파일: Indexer.php 프로젝트: aiesh/magento2
 /**
  * @return \Magento\Index\Model\Resource\Process\Collection
  */
 private function _createCollection()
 {
     return $this->_collectionFactory->create();
 }
예제 #3
0
파일: Grid.php 프로젝트: aiesh/magento2
 /**
  * Prepare grid collection
  *
  * @return $this
  */
 protected function _prepareCollection()
 {
     $this->setCollection($this->_collectionFactory->create());
     parent::_prepareCollection();
     return $this;
 }