src/DelegateRenderTermCapableTrait.php
protected function _delegateRenderTerm(TermInterface $term, $context = null)
    {
        try {
            $childCtx = $context;
            $childCtx[ExprCtx::K_EXPRESSION] = $term;

            return $this->_getTermDelegateRenderer($term, $context)
                        ->render($childCtx);
        } catch (OutOfRangeException $outOfRangeException) {
            $this->_throwRendererException(
                $this->__('Could not find a delegate renderer for the given term.'),
                null,
                $outOfRangeException
            );
        }
    }
protected function _delegateRenderTerm(TermInterface $term, $context = null)
    {
        try {
            $childCtx = $context;
            $childCtx[ExprCtx::K_EXPRESSION] = $term;

            return $this->_getTermDelegateRenderer($term, $context)
                        ->render($childCtx);
        } catch (OutOfRangeException $outOfRangeException) {
            $this->_throwRendererException(
                $this->__('Could not find a delegate renderer for the given term.'),
                null,
                $outOfRangeException
            );
        }
    }
protected function _delegateRenderTerm ( TermInterface $ term , $ context = null ) { try { $ childCtx = $ context ; $ childCtx [ ExprCtx :: K_EXPRESSION ] = $ term ; return $ this -> _getTermDelegateRenderer ( $ term , $ context ) -> render ( $ childCtx ) ; } catch ( OutOfRangeException $ outOfRangeException ) { $ this -> _throwRendererException ( $ this -> __ ( 'Could not find a delegate renderer for the given term.' ) , null , $ outOfRangeException ) ; } }
Delegates the rendering for the given term  to another renderer.

@since [*next-version*]

@param TermInterface                                      $term    The term to render.
@param array|ArrayAccess|stdClass|ContainerInterface|null $context The context.

@throws RendererExceptionInterface       If the renderer encountered an error.
@throws TemplateRenderExceptionInterface If the renderer failed to render the term.

@return string|Stringable The rendered term.
Delegates the rendering for the given term to another renderer .