ArrayNodeDefinition::canBeDisabled()

ArrayNodeDefinition canBeDisabled() Adds an "enabled" boolean to enable the current section. By default, the section is enabled. Return Value ArrayNodeDefinition

ArrayNodeDefinition::canBeUnset()

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

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

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::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::setPerformDeepMerging()

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

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::setName()

setName(string $name) Sets the node Name. Parameters string $name The name of the node

ArrayNode::setIgnoreExtraKeys()

setIgnoreExtraKeys(bool $boolean, bool $remove = true) Whether extra keys should just be ignore without an exception. Parameters bool $boolean To allow extra keys bool $remove To remove extra keys