From 0a08c362bb922913d26f1a6ec33a96589e384918 Mon Sep 17 00:00:00 2001 From: nobohan Date: Mon, 9 Apr 2018 10:24:52 +0200 Subject: [PATCH] fix deprecations: getName -> getBlockPrefix in forms --- Form/CustomFieldsGroupType.php | 2 +- Form/Type/ChoiceWithOtherType.php | 2 +- Form/Type/ChoicesListType.php | 2 +- Form/Type/ChoicesType.php | 2 +- Form/Type/CustomFieldType.php | 2 +- Form/Type/LinkedCustomFieldsType.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Form/CustomFieldsGroupType.php b/Form/CustomFieldsGroupType.php index 1c2bb436a..e45bdca88 100644 --- a/Form/CustomFieldsGroupType.php +++ b/Form/CustomFieldsGroupType.php @@ -102,7 +102,7 @@ class CustomFieldsGroupType extends AbstractType /** * @return string */ - public function getName() + public function getBlockPrefix() { return 'custom_fields_group'; } diff --git a/Form/Type/ChoiceWithOtherType.php b/Form/Type/ChoiceWithOtherType.php index cb003b07d..b787ad4f6 100644 --- a/Form/Type/ChoiceWithOtherType.php +++ b/Form/Type/ChoiceWithOtherType.php @@ -56,7 +56,7 @@ class ChoiceWithOtherType extends AbstractType ; } - public function getName() + public function getBlockPrefix() { return 'choice_with_other'; } diff --git a/Form/Type/ChoicesListType.php b/Form/Type/ChoicesListType.php index 95ab982df..a0b3d2d87 100644 --- a/Form/Type/ChoicesListType.php +++ b/Form/Type/ChoicesListType.php @@ -61,7 +61,7 @@ class ChoicesListType extends AbstractType * * @see \Symfony\Component\Form\FormTypeInterface::getName() */ - public function getName() + public function getBlockPrefix() { return 'cf_choices_list'; } diff --git a/Form/Type/ChoicesType.php b/Form/Type/ChoicesType.php index 30c44527c..709f3498f 100644 --- a/Form/Type/ChoicesType.php +++ b/Form/Type/ChoicesType.php @@ -12,7 +12,7 @@ use Symfony\Component\Form\Extension\Core\Type\CollectionType; */ class ChoicesType extends AbstractType { - public function getName() + public function getBlockPrefix() { return 'cf_choices'; } diff --git a/Form/Type/CustomFieldType.php b/Form/Type/CustomFieldType.php index 6f3727e44..ecbb07d5a 100644 --- a/Form/Type/CustomFieldType.php +++ b/Form/Type/CustomFieldType.php @@ -63,7 +63,7 @@ class CustomFieldType extends AbstractType ; } - public function getName() + public function getBlockPrefix() { return 'custom_field'; } diff --git a/Form/Type/LinkedCustomFieldsType.php b/Form/Type/LinkedCustomFieldsType.php index 635ddcc1f..3e506872b 100644 --- a/Form/Type/LinkedCustomFieldsType.php +++ b/Form/Type/LinkedCustomFieldsType.php @@ -132,7 +132,7 @@ class LinkedCustomFieldsType extends AbstractType } } - public function getName() + public function getBlockPrefix() { return 'custom_fields_group_linked_custom_fields'; }