eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\ImageConverter::createLegacyXml PHP Method

createLegacyXml() protected method

Returns the XML required by the legacy database.
protected createLegacyXml ( array $data ) : string
$data array
return string
    protected function createLegacyXml(array $data)
    {
        $data['uri'] = $this->urlRedecorator->redecorateFromSource($data['uri']);
        $pathInfo = pathinfo($data['uri']);
        return $this->fillXml($data, $pathInfo, time());
    }