Skip to content

Commit ca9622a

Browse files
committed
Added the new getBlockPrefix() method
1 parent 66a60f7 commit ca9622a

File tree

4 files changed

+12
-17
lines changed

4 files changed

+12
-17
lines changed

src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ public function getLoader(ObjectManager $manager, $queryBuilder, $class)
5656
return new ORMQueryBuilderLoader($queryBuilder);
5757
}
5858

59-
/**
60-
* {@inheritdoc}
61-
*/
62-
public function getName()
63-
{
64-
return $this->getBlockPrefix();
65-
}
66-
6759
/**
6860
* {@inheritdoc}
6961
*/

src/Symfony/Component/Form/AbstractType.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,7 @@ public function configureOptions(OptionsResolver $resolver)
4848
}
4949

5050
/**
51-
* Returns the prefix of the template block name for this type.
52-
*
53-
* The block prefixes default to the underscored short class name with
54-
* the "Type" suffix removed (e.g. "UserProfileType" => "user_profile").
55-
*
56-
* @return string The prefix of the template block name
51+
* {@inheritdoc}
5752
*/
5853
public function getBlockPrefix()
5954
{

src/Symfony/Component/Form/FormTypeInterface.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,14 @@ public function configureOptions(OptionsResolver $resolver);
8181
* @return string|null The name of the parent type if any, null otherwise
8282
*/
8383
public function getParent();
84+
85+
/**
86+
* Returns the prefix of the template block name for this type.
87+
*
88+
* The block prefix defaults to the underscored short class name with
89+
* the "Type" suffix removed (e.g. "UserProfileType" => "user_profile").
90+
*
91+
* @return string The prefix of the template block name
92+
*/
93+
public function getBlockPrefix();
8494
}

src/Symfony/Component/Form/ResolvedFormType.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ public function __construct(FormTypeInterface $innerType, array $typeExtensions
5656
}
5757

5858
/**
59-
* Returns the prefix of the template block name for this type.
60-
*
61-
* @return string The prefix of the template block name
59+
* {@inheritdoc}
6260
*/
6361
public function getBlockPrefix()
6462
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy