Classes/Hook/SitemapIndexHook.php
protected function checkIfSitemapIndexingIsEnabled($indexingType)
    {
        // check if sitemap is enabled in root
        if (!GeneralUtility::getRootSettingValue('is_sitemap', true)
            || !GeneralUtility::getRootSettingValue('is_sitemap_' . $indexingType . '_indexer', true)
        ) {
            return false;
        }

        // check current page
        if (!$this->checkIfCurrentPageIsIndexable()) {
            return false;
        }

        return true;
    }
protected function checkIfSitemapIndexingIsEnabled($indexingType)
    {
        // check if sitemap is enabled in root
        if (!GeneralUtility::getRootSettingValue('is_sitemap', true)
            || !GeneralUtility::getRootSettingValue('is_sitemap_' . $indexingType . '_indexer', true)
        ) {
            return false;
        }

        // check current page
        if (!$this->checkIfCurrentPageIsIndexable()) {
            return false;
        }

        return true;
    }
protected function checkIfSitemapIndexingIsEnabled ( $ indexingType ) { // check if sitemap is enabled in root if ( ! GeneralUtility :: getRootSettingValue ( 'is_sitemap' , true ) || ! GeneralUtility :: getRootSettingValue ( 'is_sitemap_' . $ indexingType . '_indexer' , true ) ) { return false ; } // check current page if ( ! $ this -> checkIfCurrentPageIsIndexable ( ) ) { return false ; } return true ; }
Check if sitemap indexing is enabled

@param string $indexingType Indexing type (page or typolink)

@return bool
Check if sitemap indexing is enabled