protected function getEmbedTemplateName($resourceType, $isInline, $isDenied)
    {
        $configurationReference = $this->embedConfigurationNamespace;

        if ($resourceType === static::RESOURCE_TYPE_CONTENT) {
            $configurationReference .= '.content';
        } else {
            $configurationReference .= '.location';
        }

        if ($isInline) {
            $configurationReference .= '_inline';
        }

        if ($isDenied) {
            $configurationReference .= '_denied';
        }

        if ($this->configResolver->hasParameter($configurationReference)) {
            $configuration = $this->configResolver->getParameter($configurationReference);

            return $configuration['template'];
        }

        $this->logger->warning(
            "Embed tag configuration '{$configurationReference}' was not found"
        );

        $configurationReference = $this->embedConfigurationNamespace;

        $configurationReference .= '.default';

        if ($isInline) {
            $configurationReference .= '_inline';
        }

        if ($this->configResolver->hasParameter($configurationReference)) {
            $configuration = $this->configResolver->getParameter($configurationReference);

            return $configuration['template'];
        }

        $this->logger->warning(
            "Embed tag default configuration '{$configurationReference}' was not found"
        );

        return null;
    }
protected function getEmbedTemplateName($resourceType, $isInline, $isDenied)
    {
        $configurationReference = $this->embedConfigurationNamespace;

        if ($resourceType === static::RESOURCE_TYPE_CONTENT) {
            $configurationReference .= '.content';
        } else {
            $configurationReference .= '.location';
        }

        if ($isInline) {
            $configurationReference .= '_inline';
        }

        if ($isDenied) {
            $configurationReference .= '_denied';
        }

        if ($this->configResolver->hasParameter($configurationReference)) {
            $configuration = $this->configResolver->getParameter($configurationReference);

            return $configuration['template'];
        }

        $this->logger->warning(
            "Embed tag configuration '{$configurationReference}' was not found"
        );

        $configurationReference = $this->embedConfigurationNamespace;

        $configurationReference .= '.default';

        if ($isInline) {
            $configurationReference .= '_inline';
        }

        if ($this->configResolver->hasParameter($configurationReference)) {
            $configuration = $this->configResolver->getParameter($configurationReference);

            return $configuration['template'];
        }

        $this->logger->warning(
            "Embed tag default configuration '{$configurationReference}' was not found"
        );

        return null;
    }
protected function getEmbedTemplateName ( $ resourceType , $ isInline , $ isDenied ) { $ configurationReference = $ this -> embedConfigurationNamespace ; if ( $ resourceType === static :: RESOURCE_TYPE_CONTENT ) { $ configurationReference .= '.content' ; } else { $ configurationReference .= '.location' ; } if ( $ isInline ) { $ configurationReference .= '_inline' ; } if ( $ isDenied ) { $ configurationReference .= '_denied' ; } if ( $ this -> configResolver -> hasParameter ( $ configurationReference ) ) { $ configuration = $ this -> configResolver -> getParameter ( $ configurationReference ) ; return $ configuration [ 'template' ] ; } $ this -> logger -> warning ( "Embed tag configuration '{$configurationReference}' was not found" ) ; $ configurationReference = $ this -> embedConfigurationNamespace ; $ configurationReference .= '.default' ; if ( $ isInline ) { $ configurationReference .= '_inline' ; } if ( $ this -> configResolver -> hasParameter ( $ configurationReference ) ) { $ configuration = $ this -> configResolver -> getParameter ( $ configurationReference ) ; return $ configuration [ 'template' ] ; } $ this -> logger -> warning ( "Embed tag default configuration '{$configurationReference}' was not found" ) ; return null ; }
Returns configured template reference for the given embed parameters.

@param $resourceType
@param $isInline
@param $isDenied

@return null|string
Returns configured template reference for the given embed parameters .