fix deprecations: getName -> getBlockPrefix in forms

This commit is contained in:
nobohan 2018-04-09 10:24:52 +02:00
parent 3439319e59
commit 0a08c362bb
6 changed files with 6 additions and 6 deletions

View File

@ -102,7 +102,7 @@ class CustomFieldsGroupType extends AbstractType
/** /**
* @return string * @return string
*/ */
public function getName() public function getBlockPrefix()
{ {
return 'custom_fields_group'; return 'custom_fields_group';
} }

View File

@ -56,7 +56,7 @@ class ChoiceWithOtherType extends AbstractType
; ;
} }
public function getName() public function getBlockPrefix()
{ {
return 'choice_with_other'; return 'choice_with_other';
} }

View File

@ -61,7 +61,7 @@ class ChoicesListType extends AbstractType
* *
* @see \Symfony\Component\Form\FormTypeInterface::getName() * @see \Symfony\Component\Form\FormTypeInterface::getName()
*/ */
public function getName() public function getBlockPrefix()
{ {
return 'cf_choices_list'; return 'cf_choices_list';
} }

View File

@ -12,7 +12,7 @@ use Symfony\Component\Form\Extension\Core\Type\CollectionType;
*/ */
class ChoicesType extends AbstractType class ChoicesType extends AbstractType
{ {
public function getName() public function getBlockPrefix()
{ {
return 'cf_choices'; return 'cf_choices';
} }

View File

@ -63,7 +63,7 @@ class CustomFieldType extends AbstractType
; ;
} }
public function getName() public function getBlockPrefix()
{ {
return 'custom_field'; return 'custom_field';
} }

View File

@ -132,7 +132,7 @@ class LinkedCustomFieldsType extends AbstractType
} }
} }
public function getName() public function getBlockPrefix()
{ {
return 'custom_fields_group_linked_custom_fields'; return 'custom_fields_group_linked_custom_fields';
} }