mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 04:53:49 +00:00
fix deprecations: use choices_as_values=true and flip content of the choice options
This commit is contained in:
@@ -104,10 +104,11 @@ class CustomFieldTitle extends AbstractCustomField
|
||||
return $builder->add(self::TYPE, ChoiceType::class,
|
||||
array(
|
||||
'choices' => array(
|
||||
self::TYPE_TITLE => 'Main title',
|
||||
self::TYPE_SUBTITLE => 'Subtitle'
|
||||
'Main title' => self::TYPE_TITLE,
|
||||
'Subtitle' => self::TYPE_SUBTITLE
|
||||
),
|
||||
'label' => 'Title level'
|
||||
'label' => 'Title level',
|
||||
'choices_as_values' => true
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user