forked from sonata-project/SonataAdminBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TextExtension.file
40 lines (34 loc) · 915 Bytes
/
TextExtension.file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* NEXT_MAJOR: Remove this stub when StringExtension and DeprecatedTextExtension files doesn't need the Twig\Extensions dependency
* This file is part of Twig.
*
* (c) 2009-2019 Fabien Potencier
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Twig\Extensions
{
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;
/**
* @author Henrik Bjornskov <[email protected]>
*/
class TextExtension extends AbstractExtension
{
public function getFilters()
{
}
}
}
namespace
{
use Twig\Environment;
function twig_truncate_filter(Environment $env, $value, $length = 30, $preserve = false, $separator = '...')
{
}
function twig_wordwrap_filter(Environment $env, $value, $length = 80, $separator = "\n", $preserve = false)
{
}
}