Skip to content

Commit 7c2a6c0

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

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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 prefixes default 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
}

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