Elgg\Http\ResponseFactory::normalize PHP Метод

normalize() публичный Метод

Normalizes content into serializable data by walking through arrays and objectifying Elgg entities
public normalize ( mixed $content = '' ) : mixed
$content mixed Data to normalize
Результат mixed
    public function normalize($content = '')
    {
        if ($content instanceof ElggEntity) {
            $content = (array) $content->toObject();
        }
        if (is_array($content)) {
            foreach ($content as $key => $value) {
                $content[$key] = $this->normalize($value);
            }
        }
        return $content;
    }