Using Twig template name syntax in form_theme example

This commit is contained in:
Yonel Ceruto 2018-09-08 07:56:35 -04:00
parent f6b4dc94d1
commit ce653f274b

View File

@ -54,7 +54,7 @@ class Configuration implements ConfigurationInterface
->arrayNode('form_themes')
->addDefaultChildrenIfNoneSet()
->prototype('scalar')->defaultValue('form_div_layout.html.twig')->end()
->example(array('MyBundle::form.html.twig'))
->example(array('@My/form.html.twig'))
->validate()
->ifTrue(function ($v) { return !\in_array('form_div_layout.html.twig', $v); })
->then(function ($v) {