Method | Description | |
---|---|---|
__construct ( $name, NodeParentInterface $parent = null ) | ||
addDefaultChildrenIfNoneSet ( integer | string | array | null $children = null ) : |
Adds children with a default value when none are defined. | |
addDefaultsIfNotSet ( ) : |
Adds the default value if the node is not set in the configuration. | |
append ( Symfony\Component\Config\Definition\Builder\NodeDefinition $node ) : |
Appends a node definition. | |
arrayPrototype ( ) : |
||
booleanPrototype ( ) : Symfony\Component\Config\Definition\Builder\BooleanNodeDefinition | ||
canBeDisabled ( ) : |
Adds an "enabled" boolean to enable the current section. | |
canBeEnabled ( ) : |
Adds an "enabled" boolean to enable the current section. | |
canBeUnset ( boolean $allow = true ) : |
Sets whether the node can be unset. | |
children ( ) : Symfony\Component\Config\Definition\Builder\NodeBuilder | Returns a builder to add children nodes. | |
disallowNewKeysInSubsequentConfigs ( ) : |
Disallows adding news keys in a subsequent configuration. | |
enumPrototype ( ) : Symfony\Component\Config\Definition\Builder\EnumNodeDefinition | ||
fixXmlConfig ( string $singular, string $plural = null ) : |
Sets a normalization rule for XML configurations. | |
floatPrototype ( ) : Symfony\Component\Config\Definition\Builder\FloatNodeDefinition | ||
ignoreExtraKeys ( boolean $remove = true ) : |
Allows extra config keys to be specified under an array without throwing an exception. | |
integerPrototype ( ) : Symfony\Component\Config\Definition\Builder\IntegerNodeDefinition | ||
normalizeKeys ( boolean $bool ) : |
Sets key normalization. | |
performNoDeepMerging ( ) : |
Disables the deep merging of the node. | |
prototype ( string $type ) : Symfony\Component\Config\Definition\Builder\NodeDefinition | Sets a prototype for child nodes. | |
requiresAtLeastOneElement ( ) : |
Requires the node to have at least one element. | |
scalarPrototype ( ) : Symfony\Component\Config\Definition\Builder\ScalarNodeDefinition | ||
setBuilder ( Symfony\Component\Config\Definition\Builder\NodeBuilder $builder ) | Sets a custom children builder. | |
useAttributeAsKey ( string $name, boolean $removeKeyItem = true ) : |
Sets the attribute which value is to be used as key. | |
variablePrototype ( ) : Symfony\Component\Config\Definition\Builder\VariableNodeDefinition |
Method | Description | |
---|---|---|
createNode ( ) | ||
getNodeBuilder ( ) : Symfony\Component\Config\Definition\Builder\NodeBuilder | Returns a node builder to be used to add children and prototype. | |
validateConcreteNode ( Symfony\Component\Config\Definition\ArrayNode $node ) | Validate the configuration of a concrete node. | |
validatePrototypeNode ( |
Validate the configuration of a prototype node. |
public __construct ( $name, NodeParentInterface $parent = null ) | ||
$parent | NodeParentInterface |
public addDefaultsIfNotSet ( ) : |
||
return |
public append ( Symfony\Component\Config\Definition\Builder\NodeDefinition $node ) : |
||
$node | Symfony\Component\Config\Definition\Builder\NodeDefinition | A NodeDefinition instance |
return | This node |
public arrayPrototype ( ) : |
||
return |
public booleanPrototype ( ) : Symfony\Component\Config\Definition\Builder\BooleanNodeDefinition | ||
return | Symfony\Component\Config\Definition\Builder\BooleanNodeDefinition |
public canBeDisabled ( ) : |
||
return |
public canBeEnabled ( ) : |
||
return |
public canBeUnset ( boolean $allow = true ) : |
||
$allow | boolean | |
return |
public children ( ) : Symfony\Component\Config\Definition\Builder\NodeBuilder | ||
return | Symfony\Component\Config\Definition\Builder\NodeBuilder |
public disallowNewKeysInSubsequentConfigs ( ) : |
||
return |
public enumPrototype ( ) : Symfony\Component\Config\Definition\Builder\EnumNodeDefinition | ||
return | Symfony\Component\Config\Definition\Builder\EnumNodeDefinition |
public fixXmlConfig ( string $singular, string $plural = null ) : |
||
$singular | string | The key to remap |
$plural | string | The plural of the key for irregular plurals |
return |
public floatPrototype ( ) : Symfony\Component\Config\Definition\Builder\FloatNodeDefinition | ||
return | Symfony\Component\Config\Definition\Builder\FloatNodeDefinition |
protected getNodeBuilder ( ) : Symfony\Component\Config\Definition\Builder\NodeBuilder | ||
return | Symfony\Component\Config\Definition\Builder\NodeBuilder | The node builder |
public ignoreExtraKeys ( boolean $remove = true ) : |
||
$remove | boolean | Whether to remove the extra keys |
return |
public integerPrototype ( ) : Symfony\Component\Config\Definition\Builder\IntegerNodeDefinition | ||
return | Symfony\Component\Config\Definition\Builder\IntegerNodeDefinition |
public normalizeKeys ( boolean $bool ) : |
||
$bool | boolean | Whether to enable key normalization |
return |
public performNoDeepMerging ( ) : |
||
return |
public requiresAtLeastOneElement ( ) : |
||
return |
public scalarPrototype ( ) : Symfony\Component\Config\Definition\Builder\ScalarNodeDefinition | ||
return | Symfony\Component\Config\Definition\Builder\ScalarNodeDefinition |
public setBuilder ( Symfony\Component\Config\Definition\Builder\NodeBuilder $builder ) | ||
$builder | Symfony\Component\Config\Definition\Builder\NodeBuilder | A custom NodeBuilder |
public useAttributeAsKey ( string $name, boolean $removeKeyItem = true ) : |
||
$name | string | The name of the key |
$removeKeyItem | boolean | Whether or not the key item should be removed |
return |
protected validateConcreteNode ( Symfony\Component\Config\Definition\ArrayNode $node ) | ||
$node | Symfony\Component\Config\Definition\ArrayNode | The related node |
protected validatePrototypeNode ( |
||
$node | The related node |
public variablePrototype ( ) : Symfony\Component\Config\Definition\Builder\VariableNodeDefinition | ||
return | Symfony\Component\Config\Definition\Builder\VariableNodeDefinition |