
| Current Path : /var/www/html/strat/vendor/chi-teck/drupal-code-generator/src/Helper/Renderer/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/strat/vendor/chi-teck/drupal-code-generator/src/Helper/Renderer/RendererInterface.php |
<?php
declare(strict_types=1);
namespace DrupalCodeGenerator\Helper\Renderer;
use DrupalCodeGenerator\Asset\RenderableInterface;
/**
* Renderer interface.
*/
interface RendererInterface {
/**
* Renders a template.
*
* Templates with 'twig' extension are processed with Twig template engine.
*/
public function render(string $template, array $vars): string;
/**
* Renders a template string directly.
*/
public function renderInline(string $inline_template, array $vars): string;
/**
* Renders an asset.
*/
public function renderAsset(RenderableInterface $asset): void;
/**
* Registers a path where templates are stored.
*/
public function registerTemplatePath(string $path): void;
}