public static function &getNestedArrayValue(array &$array, array $parents, &$keyExists = false)
    {
        $ref = &$array;
        foreach ($parents as $parent) {
            if (is_array($ref) && array_key_exists($parent, $ref)) {
                $ref = &$ref[$parent];
            } else {
                $keyExists = false;
                $null = null;
                return $null;
            }
        }
        $keyExists = true;

        return $ref;
    }
public static function &getNestedArrayValue(array &$array, array $parents, &$keyExists = false)
    {
        $ref = &$array;
        foreach ($parents as $parent) {
            if (is_array($ref) && array_key_exists($parent, $ref)) {
                $ref = &$ref[$parent];
            } else {
                $keyExists = false;
                $null = null;
                return $null;
            }
        }
        $keyExists = true;

        return $ref;
    }
public static function & getNestedArrayValue ( array & $ array , array $ parents , & $ keyExists = false ) { $ ref = & $ array ; foreach ( $ parents as $ parent ) { if ( is_array ( $ ref ) && array_key_exists ( $ parent , $ ref ) ) { $ ref = & $ ref [ $ parent ] ; } else { $ keyExists = false ; $ null = null ; return $ null ; } } $ keyExists = true ; return $ ref ; }
Get a nested value in an array.

@see Copied from \Drupal\Component\Utility\NestedArray::getValue()

@param array $array
@param array $parents
@param bool  $keyExists

@return mixed
Get a nested value in an array .