Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By tim.plunkett on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
All drupal_array_*() functions have been replaced by static methods in the Drupal\Component\Utility\NestedArray class.
Any file that needs to use these methods must place the following at the top of the file:
use Drupal\Component\Utility\NestedArray;
Each of the old functions have a corresponding method:
Before | After |
---|---|
drupal_array_merge_deep() |
NestedArray::mergeDeep() |
drupal_array_merge_deep_array() |
NestedArray::mergeDeepArray() |
drupal_array_get_nested_value() |
NestedArray::getValue() |
drupal_array_set_nested_value() |
NestedArray::setValue() |
drupal_array_unset_nested_value() |
NestedArray::unsetValue() |
drupal_array_nested_key_exists() |
NestedArray::keyExists() |
Impacts:
Module developers