Skip to content

Commit e907f5b

Browse files
committed
Deprecations & block prefix
1 parent 035885e commit e907f5b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/Autocomplete/src/Form/AutocompleteEntityTypeSubscriber.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* Helps transform ParentEntityAutocompleteType into a EntityType that will not load all options.
2323
*
2424
* @internal
25+
*
26+
* @deprecated since 2.13
2527
*/
2628
final class AutocompleteEntityTypeSubscriber implements EventSubscriberInterface
2729
{

src/Autocomplete/src/Form/BaseEntityAutocompleteType.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ public function getParent(): string
7676
return EntityType::class;
7777
}
7878

79+
public function getBlockPrefix(): string
80+
{
81+
return 'ux_entity_autocomplete';
82+
}
83+
7984
/**
8085
* Uses the provided URL, or auto-generate from the provided alias.
8186
*/

src/Autocomplete/src/Form/ParentEntityAutocompleteType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
/**
2525
* All form types that want to expose autocomplete functionality should use this for its getParent().
26+
*
27+
* @deprecated since 2.13, use "Symfony\UX\Autocomplete\Form\BaseEntityAutocompleteType" instead
2628
*/
2729
final class ParentEntityAutocompleteType extends AbstractType implements DataMapperInterface
2830
{

0 commit comments

Comments
 (0)