File tree 1 file changed +25
-0
lines changed
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -425,9 +425,34 @@ All options can be documented using the
425
425
:method: `Symfony\\ Component\\ Config\\ Definition\\ Builder\\ NodeDefinition::info `
426
426
method.
427
427
428
+ .. code-block :: php
429
+
430
+ $rootNode
431
+ ->children()
432
+ ->inetegerNode('entries_per_page')
433
+ ->info('This value is only used for the search results page.')
434
+ ->devaultValue(25)
435
+ ->end()
436
+ ->end()
437
+ ;
438
+
428
439
The info will be printed as a comment when dumping the configuration tree
429
440
with the ``config:dump-reference `` command.
430
441
442
+ In YAML you may have:
443
+
444
+ .. code-block :: yaml
445
+
446
+ # This value is only used for the search results page.
447
+ entries_per_page : 25
448
+
449
+ and in XML:
450
+
451
+ .. code-block :: xml
452
+
453
+ <!-- entries-per-page: This value is only used for the search results page. -->
454
+ <config entries-per-page =" 25" />
455
+
431
456
Optional Sections
432
457
-----------------
433
458
You can’t perform that action at this time.
0 commit comments