ArrayNodeDefinition::append()

append(NodeDefinition $node) Appends a node definition. $node = new ArrayNodeDefinition() ->children() ->scalarNode('foo')->end() ->scalarNode('baz')->end() ->end() ->append($this->getBarNodeDefinition()) ; Parameters NodeDefinition $node

ArrayNodeDefinition::canBeUnset()

ArrayNodeDefinition canBeUnset(bool $allow = true) Sets whether the node can be unset. Parameters bool $allow Return Value ArrayNodeDefinition

ArrayNodeDefinition

class ArrayNodeDefinition extends NodeDefinition implements ParentNodeDefinitionInterface This class provides a fluent interface for defining an array node. Methods __construct(string $name, NodeParentInterface $parent = null) Constructor. NodeDefinition|$this setParent(NodeParentInterface $parent) Sets the parent node. from NodeDefinition NodeDefinition|$this info(string $info) Sets info message. from NodeDefinition NodeDefinition|$this example(string|array $example) Sets e

ArrayNodeDefinition::addDefaultsIfNotSet()

ArrayNodeDefinition addDefaultsIfNotSet() Adds the default value if the node is not set in the configuration. This method is applicable to concrete nodes only (not to prototype nodes). If this function has been called and the node is not set during the finalization phase, it's default value will be derived from its children default values. Return Value ArrayNodeDefinition

ArrayNodeDefinition::addDefaultChildrenIfNoneSet()

ArrayNodeDefinition addDefaultChildrenIfNoneSet(int|string|array|null $children = null) Adds children with a default value when none are defined. Parameters int|string|array|null $children The number of children|The child name|The children names to be added This method is applicable to prototype nodes only. Return Value ArrayNodeDefinition

ArrayNode::setXmlRemappings()

setXmlRemappings(array $remappings) Sets the xml remappings that should be performed. Parameters array $remappings an array of the form array(array(string, string))

ArrayNode::setNormalizeKeys()

setNormalizeKeys($normalizeKeys) Parameters $normalizeKeys

ArrayNode::setPerformDeepMerging()

setPerformDeepMerging(bool $boolean) Sets if deep merging should occur. Parameters bool $boolean

ArrayNode::hasDefaultValue()

bool hasDefaultValue() Checks if the node has a default value. Return Value bool If the node has a default value

ArrayNode::setAddIfNotSet()

setAddIfNotSet(bool $boolean) Sets whether to add default values for this array if it has not been defined in any of the configuration files. Parameters bool $boolean