From 5d5607500c89fd33fa1ae8c344641d88d6f23693 Mon Sep 17 00:00:00 2001 From: WouterJ Date: Sat, 28 Nov 2015 12:15:28 +0100 Subject: [PATCH] Added getBlockPrefix to FormTypeInterface --- AbstractType.php | 7 +------ FormTypeInterface.php | 10 ++++++++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/AbstractType.php b/AbstractType.php index 9be91dfced..e99f1073b1 100644 --- a/AbstractType.php +++ b/AbstractType.php @@ -48,12 +48,7 @@ public function configureOptions(OptionsResolver $resolver) } /** - * Returns the prefix of the template block name for this type. - * - * The block prefixes default to the underscored short class name with - * the "Type" suffix removed (e.g. "UserProfileType" => "user_profile"). - * - * @return string The prefix of the template block name + * {@inheritdoc} */ public function getBlockPrefix() { diff --git a/FormTypeInterface.php b/FormTypeInterface.php index 584e650a1d..1e80f477ca 100644 --- a/FormTypeInterface.php +++ b/FormTypeInterface.php @@ -75,6 +75,16 @@ public function finishView(FormView $view, FormInterface $form, array $options); */ public function configureOptions(OptionsResolver $resolver); + /** + * Returns the prefix of the template block name for this type. + * + * The block prefix defaults to the underscored short class name with + * the "Type" suffix removed (e.g. "UserProfileType" => "user_profile"). + * + * @return string The prefix of the template block name + */ + public function getBlockPrefix(); + /** * Returns the name of the parent type. *