19declare(strict_types=1);
50 if (isset($this->cache[$key])) {
51 return $this->cache[$key];
53 $renderer = $this->loader->getRendererFor($component, $contexts);
65 return $component->
getCanonicalName() .
" " . implode(
"_", $this->getContextNames($contexts));
73 return $this->loader->getRendererFactoryFor($component);
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.
An entity that renders components to a string output.
Loads renderers for components.
This is the interface that components should use if they want to load specific renderers.