1 | <?php |
||
13 | class PagesConfigurationTwigExtension extends AbstractExtension |
||
14 | { |
||
15 | /** @var PagesConfiguration */ |
||
16 | private $pagesConfiguration; |
||
17 | |||
18 | /** |
||
19 | * @param PagesConfiguration $pagesConfiguration |
||
20 | */ |
||
21 | public function __construct(PagesConfiguration $pagesConfiguration) |
||
25 | |||
26 | /** |
||
27 | * Returns a list of functions to add to the existing list. |
||
28 | * |
||
29 | * @return array An array of functions |
||
|
|||
30 | */ |
||
31 | public function getFunctions() |
||
42 | |||
43 | /** |
||
44 | * @param string|HasNodeInterface $reference |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | public function getPossibleChildTypes($reference) |
||
52 | |||
53 | /** |
||
54 | * @return array |
||
55 | */ |
||
56 | public function getHomepageTypes() |
||
60 | } |
||
61 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.