getSubArray example

if ($value !== null) {
                $value = \json_decode((string) $value, true, 512, \JSON_THROW_ON_ERROR);

                if ($value === false || !isset($value[ConfigJsonField::STORAGE_KEY])) {
                    $value = null;
                } else {
                    $value = $value[ConfigJsonField::STORAGE_KEY];
                }
            }

            $configValues = $this->getSubArray($configValues$keys$value);
        }

        return $this->filterNotActivatedPlugins($configValues);
    }

    /** * @param array|bool|float|int|string|null $value */
    private function getSubArray(array $configValues, array $keys$value): array
    {
        $key = \array_shift($keys);

        
Home | Imprint | This part of the site doesn't use cookies.