Global navigation

   Documentation Center
   eZ Studio & eZ Platform
     User Manual
     Technical Manual
   eZ Publish 4.x / legacy

eZ Publish (5.x)

eZ Publish 5.x | For eZ Platform & eZ Studio topics see Technical manual and User manual, for eZ Publish 4.x and Legacy topics see eZ Publish legacy

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
use eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue;
use eZ\Publish\SPI\Persistence\Content\FieldValue;

// [...]

public function toStorageValue( FieldValue $value, StorageFieldValue $storageFieldValue )
   $storageFieldValue->dataText = $value->url>data;
   $storageFieldValue->sortKeyString = $value->sortKey;
public function toFieldValue( StorageFieldValue $value, FieldValue $fieldValue )
   $fieldValue->url>data = $value->dataText;
   $fieldValue->sortKey = $value->sortKeyString;