37        if (isset($this->cache[
$key])) {
 
   38            return $this->cache[
$key];
 
   40        $renderer = $this->loader->getRendererFor($component, $contexts);
 
   41        $this->cache[
$key] = $renderer;
 
   54        return $component->
getCanonicalName() . 
" " . implode(
"_", $this->getContextNames($contexts));
 
   62        return $this->loader->getRendererFactoryFor($component);
 
An exception for terminatinating execution or to throw for unit testing.
Caches renderers loaded by another loader.
getRendererFactoryFor(Component $component)
@inheritdocs
getRendererFor(Component $component, array $contexts)
@inheritdocs
__construct(Loader $loader)
getCacheKey(Component $component, array $contexts)
Get a key for the cache.
A component is the most general form of an entity in the UI.
getCanonicalName()
Get the canonical name of the component.
Loads renderers for components.