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

heimrichhannot / contao-utils-bundle / 15140811854

20 May 2025 02:51PM UTC coverage: 25.295% (-0.1%) from 25.433%
15140811854

Pull #101

github

koertho
add alias field
Pull Request #101: Add alias field

6 of 53 new or added lines in 4 files covered. (11.32%)

1503 of 5942 relevant lines covered (25.29%)

1.55 hits per line

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

0.0
/src/Dca/AliasFieldConfiguration.php
1
<?php
2

3
namespace HeimrichHannot\UtilsBundle\Dca;
4

5
use HeimrichHannot\UtilsBundle\EventListener\DcaField\AliasDcaFieldListener;
6

7
class AliasFieldConfiguration extends DcaFieldConfiguration
8
{
9
    public ?array $aliasExistCallback = [AliasDcaFieldListener::class, 'onFieldsAliasSaveCallback'];
10

11
    public string $fieldName = 'alias';
12

13
    /**
14
     * Override the default alias exist function. Provide as [Class, 'method'].
15
     *
16
     * @param array<string, string> $aliasExistCallback
17
     */
18
    public function setAliasExistCallback(?array $aliasExistCallback): AliasFieldConfiguration
19
    {
NEW
20
        $this->aliasExistCallback = $aliasExistCallback;
×
NEW
21
        return $this;
×
22
    }
23

24
    public function setFieldName(string $fieldName): AliasFieldConfiguration
25
    {
NEW
26
        $this->fieldName = $fieldName;
×
NEW
27
        return $this;
×
28
    }
29
}
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