Provides helpers to perform operations on nested arrays and array keys of variable depth.
Hierarchy
- class \Drupal\Component\Utility\NestedArray
Related topics
- Utility classes and functions
- Overview of utility classes and functions for developers.
File
- core/lib/Drupal/Component/Utility/NestedArray.php, line 10
Namespace
Drupal\Component\Utility
Members
Name | Modifiers | Type | Description |
---|---|---|---|
NestedArray::filter | public static | function | Filters a nested array recursively. |
NestedArray::getValue | public static | function | Retrieves a value from a nested array with variable depth. |
NestedArray::keyExists | public static | function | Determines whether a nested array contains the requested keys. |
NestedArray::mergeDeep | public static | function | Merges multiple arrays, recursively, and returns the merged array. |
NestedArray::mergeDeepArray | public static | function | Merges multiple arrays, recursively, and returns the merged array. |
NestedArray::setValue | public static | function | Sets a value in a nested array with variable depth. |
NestedArray::unsetValue | public static | function | Unsets a value in a nested array with variable depth. |
Please login to continue.