Revert "Merge branch 'revert-671bb6d5' into 'master'"

This reverts merge request !732
This commit is contained in:
2024-09-19 13:40:09 +00:00
parent bfd7dc2270
commit 68688dd528
1701 changed files with 35022 additions and 14546 deletions

View File

@@ -43,8 +43,7 @@ class CustomFieldChoice extends AbstractCustomField
* @var TranslatableStringHelper Helper that find the string in current locale from an array of translation
*/
private readonly TranslatableStringHelper $translatableStringHelper,
) {
}
) {}
public function allowOtherChoice(CustomField $cf)
{

View File

@@ -45,8 +45,7 @@ class CustomFieldDate extends AbstractCustomField
public function __construct(
private readonly Environment $templating,
private readonly TranslatableStringHelper $translatableStringHelper,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder, CustomField $customField)
{

View File

@@ -28,8 +28,7 @@ class CustomFieldLongChoice extends AbstractCustomField
private readonly OptionRepository $optionRepository,
private readonly TranslatableStringHelper $translatableStringHelper,
private readonly \Twig\Environment $templating,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder, CustomField $customField)
{

View File

@@ -42,8 +42,7 @@ class CustomFieldNumber extends AbstractCustomField
public function __construct(
private readonly Environment $templating,
private readonly TranslatableStringHelper $translatableStringHelper,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder, CustomField $customField)
{

View File

@@ -29,8 +29,7 @@ class CustomFieldText extends AbstractCustomField
public function __construct(
private readonly Environment $templating,
private readonly TranslatableStringHelper $translatableStringHelper,
) {
}
) {}
/**
* Create a form according to the maxLength option.

View File

@@ -32,8 +32,7 @@ class CustomFieldTitle extends AbstractCustomField
* @var TranslatableStringHelper Helper that find the string in current locale from an array of translation
*/
private readonly TranslatableStringHelper $translatableStringHelper,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder, CustomField $customField)
{