ldc-groupe/content/plugins/sitepress-multilingual-cms/classes/templates/class-wpml-twig-template.php
Vincent BRIDIER 134507db43 - Backup DEV
- Add DotEnv
- Fix Bato
- Etc..
2020-05-04 15:59:02 +02:00

23 lines
No EOL
421 B
PHP

<?php
use WPML\Core\Twig_Environment;
/**
* @author OnTheGo Systems
*/
class WPML_Twig_Template implements IWPML_Template_Service {
private $twig;
/**
* WPML_Twig_Template constructor.
*
* @param Twig_Environment $twig
*/
public function __construct( Twig_Environment $twig ) {
$this->twig = $twig;
}
public function show( $model, $template ) {
return $this->twig->render( $template, $model );
}
}