MutableConfigCollectionInterface
interface MutableConfigCollectionInterface implements ConfigCollectionInterface (View source)
Methods
Fetches value for a class, or a property on that class
Checks to see if a config item exists, or a property on that class
Get nested version of this config, which is normally duplicated version of this config, but could be a subclass.
Sets config for a given field.
Merge a config for a class, or a field on that class
Remove config for a given class, or field on that class
Details
mixed
get(string $class, string $name = null, int|true $excludeMiddleware = 0)
Fetches value for a class, or a property on that class
bool
exists(string $class, string $name = null, int|true $excludeMiddleware = 0)
Checks to see if a config item exists, or a property on that class
array
getMetadata()
Returns the entire metadata
getHistory()
No description
ConfigCollectionInterface
nest()
Get nested version of this config, which is normally duplicated version of this config, but could be a subclass.
Middleware[]
getMiddlewares()
No description
$this
setMiddlewares(Middleware[] $middlewares)
No description
$this
addMiddleware(Middleware $middleware)
No description
array
getAll()
Get complete config (excludes middleware)
$this
set(string $class, string $name, mixed $value, array $metadata = [])
Sets config for a given field.
Set name to null to set the config for the entire class.
$this
merge(string $class, string $name, mixed $value)
Merge a config for a class, or a field on that class
$this
remove(string $class, string $name = null)
Remove config for a given class, or field on that class
removeAll()
Delete all entries