Skip to content

Latest commit

 

History

History
14 lines (14 loc) · 463 Bytes

extending.md

File metadata and controls

14 lines (14 loc) · 463 Bytes

Extend an existing field helper

Existing field helpers are of course extensible in symfony style, by decorating the according service. If you do not override the getName() method, it will still be available under the old name but with your overridden implementation

class BetterTextFieldHelper extends AbstractFieldHelper
{
    ...
}
services
    App\BetterTextFieldHelper:
        decorates: 'elbformat_field_helper.field_helper.text'