protected function isEnabled($context, array $configuration = [])
    {
        if (!empty($configuration['jumpurl.']['forceDisable'])) {
            return false;
        }

        $enabled = !empty($configuration['jumpurl']);

        // if jumpurl is explicitly set to 0 we override the global configuration
        if (!$enabled && $this->getTypoScriptFrontendController()->config['config']['jumpurl_enable']) {
            $enabled = !isset($configuration['jumpurl']) || $configuration['jumpurl'];
        }

        // If we have a mailto link and jumpurl is not explicitly enabled
        // but globally disabled for mailto links we disable it
        if (
            empty($configuration['jumpurl']) && $context === UrlProcessorInterface::CONTEXT_MAIL
            && $this->getTypoScriptFrontendController()->config['config']['jumpurl_mailto_disable']
        ) {
            $enabled = false;
        }

        return $enabled;
    }
protected function isEnabled($context, array $configuration = [])
    {
        if (!empty($configuration['jumpurl.']['forceDisable'])) {
            return false;
        }

        $enabled = !empty($configuration['jumpurl']);

        // if jumpurl is explicitly set to 0 we override the global configuration
        if (!$enabled && $this->getTypoScriptFrontendController()->config['config']['jumpurl_enable']) {
            $enabled = !isset($configuration['jumpurl']) || $configuration['jumpurl'];
        }

        // If we have a mailto link and jumpurl is not explicitly enabled
        // but globally disabled for mailto links we disable it
        if (
            empty($configuration['jumpurl']) && $context === UrlProcessorInterface::CONTEXT_MAIL
            && $this->getTypoScriptFrontendController()->config['config']['jumpurl_mailto_disable']
        ) {
            $enabled = false;
        }

        return $enabled;
    }
protected function isEnabled ( $ context , array $ configuration = [ ] ) { if ( ! empty ( $ configuration [ 'jumpurl.' ] [ 'forceDisable' ] ) ) { return false ; } $ enabled = ! empty ( $ configuration [ 'jumpurl' ] ) ; // if jumpurl is explicitly set to 0 we override the global configuration if ( ! $ enabled && $ this -> getTypoScriptFrontendController ( ) -> config [ 'config' ] [ 'jumpurl_enable' ] ) { $ enabled = ! isset ( $ configuration [ 'jumpurl' ] ) || $ configuration [ 'jumpurl' ] ; } // If we have a mailto link and jumpurl is not explicitly enabled // but globally disabled for mailto links we disable it if ( empty ( $ configuration [ 'jumpurl' ] ) && $ context === UrlProcessorInterface :: CONTEXT_MAIL && $ this -> getTypoScriptFrontendController ( ) -> config [ 'config' ] [ 'jumpurl_mailto_disable' ] ) { $ enabled = false ; } return $ enabled ; }
Returns TRUE if jumpurl was enabled in the global configuration
or in the given configuration

@param string $context separate check for the MAIL context needed
@param array $configuration Optional jump URL configuration
@return bool TRUE if enabled, FALSE if disabled
Returns TRUE if jumpurl was enabled in the global configuration or in the given configuration