private function reindexFlatCategories()
    {
        if ($this->flatCategoryIndexState->isFlatEnabled()) {
            $flatCategoryIndexer = $this->indexerRegistry->get(\Magento\Catalog\Model\Indexer\Category\Flat\State::INDEXER_ID);
            $flatCategoryIndexer->reindexAll();
        }
    }
private function reindexFlatCategories()
    {
        if ($this->flatCategoryIndexState->isFlatEnabled()) {
            $flatCategoryIndexer = $this->indexerRegistry->get(\Magento\Catalog\Model\Indexer\Category\Flat\State::INDEXER_ID);
            $flatCategoryIndexer->reindexAll();
        }
    }
private function reindexFlatCategories ( ) { if ( $ this -> flatCategoryIndexState -> isFlatEnabled ( ) ) { $ flatCategoryIndexer = $ this -> indexerRegistry -> get ( \ Magento \ Catalog \ Model \ Indexer \ Category \ Flat \ State :: INDEXER_ID ) ; $ flatCategoryIndexer -> reindexAll ( ) ; } }
Process full reindexing of flat categories if enabled and not scheduled.
Process full reindexing of flat categories if enabled and not scheduled .