1 | <?php |
||
7 | class eZObjectWrapperExtension extends \Twig_Extension |
||
|
|||
8 | { |
||
9 | private $container; |
||
10 | |||
11 | /** |
||
12 | * @param ContainerInterface $container |
||
13 | */ |
||
14 | public function __construct(ContainerInterface $container) |
||
18 | |||
19 | public function getFunctions() |
||
25 | |||
26 | /** |
||
27 | * Render a location according to the viewType and the ContentType set in override.yml, without doing a sub-request. |
||
28 | * Note: we can NOT inject directly the 'ezpublish.controller.content.view' service because it generates a ServiceCircularReferenceException |
||
29 | * |
||
30 | * @param int $locationID |
||
31 | * @param string $viewType |
||
32 | * @param array $params |
||
33 | * @return string generally it is safe html and does not need to be further encoded/escaped |
||
34 | */ |
||
35 | public function renderLocation($locationID, $viewType, $params = array()) |
||
42 | |||
43 | public function getName() |
||
47 | } |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.