private function parseContent($key, $value, $returned_content, $prefix)
    {
        if ($key === 'imports' && !is_null($value) && !empty($value)) {
            $imported_resource = $this->useImports($value);

            if ($imported_resource) {
                $returned_content = array_replace_recursive($returned_content, $imported_resource);
            }
        } elseif (is_array($value)) {
            $returned_content[$key] = $this->searchForResources(
                $value,
                $this->variables->vstore->createPrefixName($prefix, $key)
            );
        } else {
            $value = $this->parseText($value);
            $this->variables->vstore->set($prefix.$key, $value);
            $returned_content[$key] = $value;
        }

        return $returned_content;
    }
private function parseContent($key, $value, $returned_content, $prefix)
    {
        if ($key === 'imports' && !is_null($value) && !empty($value)) {
            $imported_resource = $this->useImports($value);

            if ($imported_resource) {
                $returned_content = array_replace_recursive($returned_content, $imported_resource);
            }
        } elseif (is_array($value)) {
            $returned_content[$key] = $this->searchForResources(
                $value,
                $this->variables->vstore->createPrefixName($prefix, $key)
            );
        } else {
            $value = $this->parseText($value);
            $this->variables->vstore->set($prefix.$key, $value);
            $returned_content[$key] = $value;
        }

        return $returned_content;
    }
private function parseContent ( $ key , $ value , $ returned_content , $ prefix ) { if ( $ key === 'imports' && ! is_null ( $ value ) && ! empty ( $ value ) ) { $ imported_resource = $ this -> useImports ( $ value ) ; if ( $ imported_resource ) { $ returned_content = array_replace_recursive ( $ returned_content , $ imported_resource ) ; } } elseif ( is_array ( $ value ) ) { $ returned_content [ $ key ] = $ this -> searchForResources ( $ value , $ this -> variables -> vstore -> createPrefixName ( $ prefix , $ key ) ) ; } else { $ value = $ this -> parseText ( $ value ) ; $ this -> variables -> vstore -> set ( $ prefix . $ key , $ value ) ; $ returned_content [ $ key ] = $ value ; } return $ returned_content ; }
Parses the contents inside the content array

@param mixed  $key              The key of the content array
@param mixed  $value            The value of the key
@param array  $returned_content The modified content array to return
@param string $prefix           The array prefix for the entity

@return array Returns the modified content array
Parses the contents inside the content array