19declare(strict_types=1);
44 $renderer = $this->loader->getRendererFor($component, $contexts);
45 $renderer->registerResources($this->resource_registry);
54 return $this->loader->getRendererFactoryFor($component);
Registers resources for retreived renderers at a ResourceRegistry.
getRendererFor(Component $component, array $contexts)
@inheritdocs
getRendererFactoryFor(Component $component)
@inheritdocs
ResourceRegistry $resource_registry
__construct(ResourceRegistry $resource_registry, Loader $loader)
A component is the most general form of an entity in the UI.
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.
Registry for resources required by rendered output like Javascript or CSS.