Plugin Framework Function twigFramework()

protected final function twigFramework(
$vars = array(), $return = false, $fromString = false
)

Summary

Calls the Twig template engine to output a Twig framework.

Where You Can Use It

From in your plugin's showSlot() method. From Zenario 7.0 onwards.

Description

If you have created a Twig framework for your Module - e.g. frameworks/standard/framework.twig.html - then you can call it by calling this function.

Parameters

$vars

An array of data to pass to your Twig framework.

$return

If this is set to true, this function will return the html generated.

By default the html generated will be output to the screen.