__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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']]
),
];
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AssetExtension.php | File | 649 B | 0644 |
|
| CoreExtension.php | File | 486 B | 0644 |
|
| FlashMessagesExtension.php | File | 389 B | 0644 |
|
| I18nExtension.php | File | 673 B | 0644 |
|
| MessageExtension.php | File | 1.1 KB | 0644 |
|
| RelationExtension.php | File | 1.17 KB | 0644 |
|
| SanitizeExtension.php | File | 1.23 KB | 0644 |
|
| TableExtension.php | File | 500 B | 0644 |
|
| TrackerExtension.php | File | 523 B | 0644 |
|
| TransformationsExtension.php | File | 711 B | 0644 |
|
| UrlExtension.php | File | 1.17 KB | 0644 |
|
| UtilExtension.php | File | 5.1 KB | 0644 |
|