protected function collectPageGarbageByPageChange($uid)
    {
        $pageOverlay = BackendUtility::getRecord('pages', $uid, 'l10n_parent', '', false);
        $uid = empty($pageOverlay['l10n_parent']) || intval($pageOverlay['l10n_parent']) === 0 ? $uid : $pageOverlay['l10n_parent'];

        $this->deleteInSolrAndRemoveFromIndexQueue('pages', $uid);
    }
protected function collectPageGarbageByPageChange($uid)
    {
        $pageOverlay = BackendUtility::getRecord('pages', $uid, 'l10n_parent', '', false);
        $uid = empty($pageOverlay['l10n_parent']) || intval($pageOverlay['l10n_parent']) === 0 ? $uid : $pageOverlay['l10n_parent'];

        $this->deleteInSolrAndRemoveFromIndexQueue('pages', $uid);
    }
protected function collectPageGarbageByPageChange ( $ uid ) { $ pageOverlay = BackendUtility :: getRecord ( 'pages' , $ uid , 'l10n_parent' , '' , false ) ; $ uid = empty ( $ pageOverlay [ 'l10n_parent' ] ) || intval ( $ pageOverlay [ 'l10n_parent' ] ) === 0 ? $ uid : $ pageOverlay [ 'l10n_parent' ] ; $ this -> deleteInSolrAndRemoveFromIndexQueue ( 'pages' , $ uid ) ; }
When a page was changed it is removed from the index and index queue.

@param int $uid
When a page was changed it is removed from the index and index queue .