interface ParentNodeDefinitionInterface implements BuilderAwareInterface
An interface that must be implemented by nodes which can have children.
setBuilder(NodeBuilder $builder) Sets a custom children builder. | from BuilderAwareInterface | |
NodeBuilder | children() Returns a builder to add children nodes. | |
$this | append(NodeDefinition $node) Appends a node definition. |
Sets a custom children builder.
NodeBuilder | $builder |
Returns a builder to add children nodes.
NodeBuilder |
Appends a node definition.
Usage:
$node = $parentNode
->children()
->scalarNode('foo')->end()
->scalarNode('baz')->end()
->append($this->getBarNodeDefinition())
->end()
;
NodeDefinition | $node |
$this |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Config/Definition/Builder/ParentNodeDefinitionInterface.html