src/Kunstmaan/AdminBundle/Twig/MultiDomainAdminTwigExtension.php 1 location
|
@@ 45-60 (lines=16) @@
|
42 |
|
* |
43 |
|
* @return string |
44 |
|
*/ |
45 |
|
public function renderWidget(\Twig_Environment $env, $route, array $parameters = array()) |
46 |
|
{ |
47 |
|
$template = $env->loadTemplate( |
48 |
|
"@KunstmaanAdmin/MultiDomainAdminTwigExtension/widget.html.twig" |
49 |
|
); |
50 |
|
|
51 |
|
return $template->render( |
52 |
|
array_merge( |
53 |
|
$parameters, |
54 |
|
array( |
55 |
|
'hosts' => $this->getAdminDomainHosts(), |
56 |
|
'route' => $route |
57 |
|
) |
58 |
|
) |
59 |
|
); |
60 |
|
} |
61 |
|
|
62 |
|
/** |
63 |
|
* Check if site is multiDomain |
src/Kunstmaan/AdminBundle/Twig/TabsTwigExtension.php 1 location
|
@@ 35-42 (lines=8) @@
|
32 |
|
* |
33 |
|
* @return string |
34 |
|
*/ |
35 |
|
public function renderWidget(Twig_Environment $env, TabPane $tabPane, $options = array(), $template = "KunstmaanAdminBundle:TabsTwigExtension:widget.html.twig") |
36 |
|
{ |
37 |
|
$template = $env->loadTemplate($template); |
38 |
|
|
39 |
|
return $template->render(array_merge($options, array( |
40 |
|
'tabPane' => $tabPane |
41 |
|
))); |
42 |
|
} |
43 |
|
} |
44 |
|
|