| Total Complexity | 4 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class L10n implements Injectable |
||
| 16 | { |
||
| 17 | use Helper; |
||
| 18 | |||
| 19 | const FILTER_L10N_LIST = 'twigwp.i10n_list'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Kses Functions list |
||
| 23 | * |
||
| 24 | * @var array The list of kses functions to register in twig |
||
| 25 | */ |
||
| 26 | private $i10n; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Kses constructor |
||
| 30 | * |
||
| 31 | * @param array $i10n The list of kses functions to register into twig |
||
| 32 | */ |
||
| 33 | public function __construct(array $i10n = []) |
||
| 34 | { |
||
| 35 | $this->i10n = $i10n; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @inheritdoc |
||
| 40 | */ |
||
| 41 | public function injectInto(\Twig\Environment $twig): \Twig\Environment |
||
| 65 | } |
||
| 66 | } |
||
| 67 |