BaseNode
abstract class BaseNode implements NodeInterface
The base node class.
Constants
DEFAULT_PATH_SEPARATOR |
|
Properties
Methods
No description
Register possible (dummy) values for a dynamic placeholder value.
Sets a common prefix for dynamic placeholder values.
Resets all current placeholders available.
No description
No description
No description
No description
No description
No description
Sets an info message.
Returns info message.
Sets the example configuration for this node.
Retrieves the example configuration for this node.
Adds an equivalent value.
Set this node as required.
Sets this node as deprecated.
Sets if this node can be overridden.
Sets the closures used for normalization.
Sets the closures used for final validation.
Returns true when the node is required.
Checks if this node is deprecated.
Returns the deprecated message.
Returns the name of the node.
Returns the path of the node.
Merges two values together.
Normalizes a value.
Normalizes the value before any other normalization is applied.
Returns parent node for this node.
Finalizes a value.
Validates the type of a Node.
Normalizes the value.
Merges two values together.
Finalizes a value.
Tests if placeholder values are allowed for this node.
Tests if a placeholder is being handled currently.
Gets allowed dynamic types for this node.
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.