Update website

This commit is contained in:
Guilhem Lavaux 2024-11-19 09:35:33 +01:00
parent bb4b0f9be8
commit 011b183e28
4263 changed files with 3014 additions and 720369 deletions

View file

@ -1,48 +0,0 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Twig;
use PhpMyAdmin\Url;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
class UrlExtension extends AbstractExtension
{
/**
* Returns a list of functions to add to the existing list.
*
* @return TwigFunction[]
*/
public function getFunctions()
{
return [
new TwigFunction(
'get_hidden_inputs',
[Url::class, 'getHiddenInputs'],
['is_safe' => ['html']]
),
new TwigFunction(
'get_hidden_fields',
[Url::class, 'getHiddenFields'],
['is_safe' => ['html']]
),
new TwigFunction(
'get_common',
[Url::class, 'getCommon'],
['is_safe' => ['html']]
),
new TwigFunction(
'get_common_raw',
[Url::class, 'getCommonRaw'],
['is_safe' => ['html']]
),
new TwigFunction(
'url',
[Url::class, 'getFromRoute'],
['is_safe' => ['html']]
),
];
}
}