• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

heimrichhannot / contao-utils-bundle / 6809777185

09 Nov 2023 09:22AM UTC coverage: 22.835%. Remained the same
6809777185

push

github

koertho
deprecate twig filters and tests

2 of 32 new or added lines in 8 files covered. (6.25%)

4 existing lines in 4 files now uncovered.

1255 of 5496 relevant lines covered (22.83%)

1.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Twig/DcaExtension.php
1
<?php
2

3
/*
4
 * Copyright (c) 2021 Heimrich & Hannot GmbH
5
 *
6
 * @license LGPL-3.0-or-later
7
 */
8

9
namespace HeimrichHannot\UtilsBundle\Twig;
10

11
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
12
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
13
use Twig\Extension\AbstractExtension;
14
use Twig\TwigFilter;
15

16
class DcaExtension extends AbstractExtension implements ContainerAwareInterface
17
{
18
    use ContainerAwareTrait;
19

20
    public function getFilters()
21
    {
22
        return [
×
NEW
23
            new TwigFilter('fieldLabel', [$this, 'fieldLabel'], ['deprecated' => true]),
×
24
        ];
×
25
    }
26

27
    public function fieldLabel(string $field, string $table): string
28
    {
29
        return $this->container->get('huh.utils.dca')->getFieldLabel($table, $field);
×
30
    }
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc