]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Twig/WallabagExtension.php
3 namespace Wallabag\CoreBundle\Twig
;
5 class WallabagExtension
extends \Twig_Extension
7 public function getFilters()
10 new \
Twig_SimpleFilter('removeWww', [$this, 'removeWww']),
14 public function removeWww($url)
16 return preg_replace('/^www\./i', '', $url);
19 public function getName()
21 return 'wallabag_extension';