Skip to content

Commit

Permalink
Added getBlockPrefix to FormTypeInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Nov 28, 2015
1 parent 98c94e1 commit 5d56075
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 1 addition & 6 deletions AbstractType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
10 changes: 10 additions & 0 deletions FormTypeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 5d56075

Please sign in to comment.