VariableNode
class VariableNode extends BaseNode implements PrototypeNodeInterface
This node represents a value of variable type in the config tree.
This node is intended for values of arbitrary type. Any PHP type is accepted as a value.
Constants
DEFAULT_PATH_SEPARATOR |
|
Properties
protected | $name | from BaseNode | |
protected | $parent | from BaseNode | |
protected | $normalizationClosures | from BaseNode | |
protected | $finalValidationClosures | from BaseNode | |
protected | $allowOverwrite | from BaseNode | |
protected | $required | from BaseNode | |
protected | $deprecationMessage | from BaseNode | |
protected | $equivalentValues | from BaseNode | |
protected | $attributes | from BaseNode | |
protected | $pathSeparator | from BaseNode | |
protected | $defaultValueSet | ||
protected | $defaultValue | ||
protected | $allowEmptyValue |
Methods
No description
Register possible (dummy) values for a dynamic placeholder value.
Sets a common prefix for dynamic placeholder values.
Adds an equivalent value.
Sets the closures used for final validation.
Returns the deprecated message.
Normalizes the value before any other normalization is applied.
Validates the type of a Node.
Normalizes the value.
Merges two values together.
Finalizes a value.
No description
Returns true when the node has a default value.
Returns the default value of the node.
Sets if this node is allowed to have an empty value.
Sets the name of the node.
Evaluates if the given value is to be treated as empty.
Details
__construct(string|null $name, NodeInterface $parent = null, string $pathSeparator = self::DEFAULT_PATH_SEPARATOR)
static void
setPlaceholder(string $placeholder, array $values)
Register possible (dummy) values for a dynamic placeholder value.
Matching configuration values will be processed with a provided value, one by one. After a provided value is successfully processed the configuration value is returned as is, thus preserving the placeholder.
static void
setPlaceholderUniquePrefix(string $prefix)
Sets a common prefix for dynamic placeholder values.
Matching configuration values will be skipped from being processed and are returned as is, thus preserving the placeholder. An exact match provided by {see setPlaceholder()} might take precedence.