You are here

public function FragmentHandler::addRenderer in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Fragment/FragmentHandler.php \Symfony\Component\HttpKernel\Fragment\FragmentHandler::addRenderer()

Adds a renderer.

Parameters

FragmentRendererInterface $renderer A FragmentRendererInterface instance:

2 calls to FragmentHandler::addRenderer()
FragmentHandler::__construct in vendor/symfony/http-kernel/Fragment/FragmentHandler.php
Constructor.
LazyLoadingFragmentHandler::render in vendor/symfony/http-kernel/DependencyInjection/LazyLoadingFragmentHandler.php
Renders a URI and returns the Response content.

File

vendor/symfony/http-kernel/Fragment/FragmentHandler.php, line 65

Class

FragmentHandler
Renders a URI that represents a resource fragment.

Namespace

Symfony\Component\HttpKernel\Fragment

Code

public function addRenderer(FragmentRendererInterface $renderer) {
  $this->renderers[$renderer
    ->getName()] = $renderer;
}