Update website
This commit is contained in:
parent
0a686aeb9a
commit
c4ffa0f6ee
4360 changed files with 1727 additions and 718385 deletions
|
@ -1,44 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Twig;
|
||||
|
||||
use PhpMyAdmin\Message;
|
||||
use Twig\Extension\AbstractExtension;
|
||||
use Twig\TwigFilter;
|
||||
|
||||
class MessageExtension extends AbstractExtension
|
||||
{
|
||||
/**
|
||||
* Returns a list of filters to add to the existing list.
|
||||
*
|
||||
* @return TwigFilter[]
|
||||
*/
|
||||
public function getFilters()
|
||||
{
|
||||
return [
|
||||
new TwigFilter(
|
||||
'notice',
|
||||
static function (string $string) {
|
||||
return Message::notice($string)->getDisplay();
|
||||
},
|
||||
['is_safe' => ['html']]
|
||||
),
|
||||
new TwigFilter(
|
||||
'error',
|
||||
static function (string $string) {
|
||||
return Message::error($string)->getDisplay();
|
||||
},
|
||||
['is_safe' => ['html']]
|
||||
),
|
||||
new TwigFilter(
|
||||
'raw_success',
|
||||
static function (string $string) {
|
||||
return Message::rawSuccess($string)->getDisplay();
|
||||
},
|
||||
['is_safe' => ['html']]
|
||||
),
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue