"Fossies" - the Fresh Open Source Software Archive

Member "phpMyAdmin-5.1.0-all-languages/libraries/classes/Twig/CoreExtension.php" (24 Feb 2021, 467 Bytes) of package /linux/www/phpMyAdmin-5.1.0-all-languages.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "CoreExtension.php": 5.0.4-english_vs_5.1.0-english.

    1 <?php
    2 
    3 declare(strict_types=1);
    4 
    5 namespace PhpMyAdmin\Twig;
    6 
    7 use Twig\Extension\AbstractExtension;
    8 use Twig\TwigFilter;
    9 
   10 class CoreExtension extends AbstractExtension
   11 {
   12     /**
   13      * Returns a list of filters to add to the existing list.
   14      *
   15      * @return TwigFilter[]
   16      */
   17     public function getFilters()
   18     {
   19         return [
   20             new TwigFilter(
   21                 'link',
   22                 'PhpMyAdmin\Core::linkURL'
   23             ),
   24         ];
   25     }
   26 }