Property | Type | Description | |
---|---|---|---|
$defaultChildren | |||
$defaultValue | |||
$keyAttribute | |||
$minNumberOfElements | |||
$prototype | |||
$removeKeyAttribute |
Method | Description | |
---|---|---|
addChild ( Symfony\Component\Config\Definition\NodeInterface $node ) | Disable adding concrete children for prototyped nodes. | |
getDefaultValue ( ) : array | Retrieves the default value. | |
getKeyAttribute ( ) : string | Retrieves the name of the attribute which value should be used as key. | |
getPrototype ( ) : Symfony\Component\Config\Definition\PrototypeNodeInterface | Retrieves the prototype. | |
hasDefaultValue ( ) : boolean | Checks if the node has a default value. | |
setAddChildrenIfNoneSet ( integer | string | array | null $children = ['defaults'] ) | Adds default children when none are set. | |
setDefaultValue ( string $value ) | Sets the default value of this node. | |
setKeyAttribute ( string $attribute, boolean $remove = true ) | Sets the attribute which value is to be used as key. | |
setMinNumberOfElements ( integer $number ) | Sets the minimum number of elements that a prototype based node must contain. By default this is zero, meaning no elements. | |
setPrototype ( Symfony\Component\Config\Definition\PrototypeNodeInterface $node ) | Sets the node prototype. |
Method | Description | |
---|---|---|
finalizeValue ( mixed $value ) : mixed | Finalizes the value of this node. | |
mergeValues ( mixed $leftSide, mixed $rightSide ) : mixed | Merges values together. | |
normalizeValue ( mixed $value ) : mixed | Normalizes the value. |
Method | Description | |
---|---|---|
getPrototypeForChild ( string $key ) : mixed | Returns a prototype for the child node that is associated to $key in the value array. |
public addChild ( Symfony\Component\Config\Definition\NodeInterface $node ) | ||
$node | Symfony\Component\Config\Definition\NodeInterface | The child node to add |
protected finalizeValue ( mixed $value ) : mixed | ||
$value | mixed | |
return | mixed | The finalized value |
public getDefaultValue ( ) : array | ||
return | array | The default value |
public getKeyAttribute ( ) : string | ||
return | string | The name of the attribute |
public getPrototype ( ) : Symfony\Component\Config\Definition\PrototypeNodeInterface | ||
return | Symfony\Component\Config\Definition\PrototypeNodeInterface | The prototype |
public hasDefaultValue ( ) : boolean | ||
return | boolean |
protected normalizeValue ( mixed $value ) : mixed | ||
$value | mixed | The value to normalize |
return | mixed | The normalized value |
public setDefaultValue ( string $value ) | ||
$value | string |
public setKeyAttribute ( string $attribute, boolean $remove = true ) | ||
$attribute | string | The name of the attribute which value is to be used as a key |
$remove | boolean | Whether or not to remove the key |
public setMinNumberOfElements ( integer $number ) | ||
$number | integer |
public setPrototype ( Symfony\Component\Config\Definition\PrototypeNodeInterface $node ) | ||
$node | Symfony\Component\Config\Definition\PrototypeNodeInterface |