Remove some useless comments
[phpmyadmin.git] / libraries / classes / Twig / UrlExtension.php
blob1efa0fc45092c61b42e908775e8b824d49466f10
1 <?php
3 declare(strict_types=1);
5 namespace PhpMyAdmin\Twig;
7 use Twig\Extension\AbstractExtension;
8 use Twig\TwigFunction;
10 class UrlExtension extends AbstractExtension
12 /**
13 * Returns a list of functions to add to the existing list.
15 * @return TwigFunction[]
17 public function getFunctions()
19 return [
20 new TwigFunction(
21 'get_hidden_inputs',
22 'PhpMyAdmin\Url::getHiddenInputs',
23 ['is_safe' => ['html']]
25 new TwigFunction(
26 'get_hidden_fields',
27 'PhpMyAdmin\Url::getHiddenFields',
28 ['is_safe' => ['html']]
30 new TwigFunction(
31 'get_common',
32 'PhpMyAdmin\Url::getCommon',
33 ['is_safe' => ['html']]
35 new TwigFunction(
36 'get_common_raw',
37 'PhpMyAdmin\Url::getCommonRaw',
38 ['is_safe' => ['html']]
40 new TwigFunction(
41 'url',
42 'PhpMyAdmin\Url::getFromRoute',
43 ['is_safe' => ['html']]