Webiny\Component\TemplateEngine\Bridge\TemplateEngine::getLibrary PHP Method

getLibrary() private static method

Get the name of bridge library which will be used as the driver.
private static getLibrary ( string $engineName ) : string
$engineName string Name of the template engine for which you wish to get the
return string
    private static function getLibrary($engineName)
    {
        $bridges = \Webiny\Component\TemplateEngine\TemplateEngine::getConfig()->get('Bridges', false);
        if (!$bridges) {
            if (!isset(self::$library[$engineName])) {
                return false;
            }
            return self::$library[$engineName];
        }
        return $bridges->get($engineName, false);
    }