for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PHP Translation package.
*
* (c) PHP Translation team <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Translation\Extractor\Twig;
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;
final class TranslationExtension extends AbstractExtension
{
/**
* {@inheritdoc}
public function getFilters(): array
return [
new TwigFilter('desc', [$this, 'runDescFilter']),
];
}
public function runDescFilter($v)
return $v;
public function getName(): string
return 'php-translation';