OXID eShop CE  6.2.0
OxidEsales\EshopCommunity\Internal\Framework\Templating\TemplateRendererInterface Interface Reference
+ Inheritance diagram for OxidEsales\EshopCommunity\Internal\Framework\Templating\TemplateRendererInterface:

Public Member Functions

 renderTemplate (string $template, array $context=[])
 
 renderFragment (string $fragment, string $fragmentId, array $context=[])
 
 getTemplateEngine ()
 
 exists (string $name)
 

Member Function Documentation

◆ exists()

OxidEsales\EshopCommunity\Internal\Framework\Templating\TemplateRendererInterface::exists ( string  $name)

Returns true if the template exists.

Parameters
string$nameA template name
Returns
bool true if the template exists, false otherwise

Implemented in OxidEsales\EshopCommunity\Internal\Framework\Templating\TemplateRenderer.

◆ getTemplateEngine()

OxidEsales\EshopCommunity\Internal\Framework\Templating\TemplateRendererInterface::getTemplateEngine ( )

◆ renderFragment()

OxidEsales\EshopCommunity\Internal\Framework\Templating\TemplateRendererInterface::renderFragment ( string  $fragment,
string  $fragmentId,
array  $context = [] 
)

Renders a fragment of the template.

Parameters
string$fragmentThe template fragment to render
string$fragmentIdThe id of the fragment
array$contextAn array of parameters to pass to the template
Returns
string

Implemented in OxidEsales\EshopCommunity\Internal\Framework\Templating\TemplateRenderer.

◆ renderTemplate()

OxidEsales\EshopCommunity\Internal\Framework\Templating\TemplateRendererInterface::renderTemplate ( string  $template,
array  $context = [] 
)
Parameters
string$templateThe template name
array$contextAn array of parameters to pass to the template
Returns
string

Implemented in OxidEsales\EshopCommunity\Internal\Framework\Templating\TemplateRenderer.


The documentation for this interface was generated from the following file: