mirror of
https://github.com/jbcr/ezmigrationbundle.git
synced 2026-03-24 08:52:08 +01:00
19 lines
769 B
PHP
19 lines
769 B
PHP
<?php
|
|
|
|
namespace Kaliop\eZMigrationBundle\API;
|
|
|
|
/**
|
|
* Interface for all classes dealing with the conversion of field values from hash representation to/from repo values
|
|
*/
|
|
interface FieldValueConverterInterface extends FieldValueImporterInterface
|
|
{
|
|
/**
|
|
* Converts the Content Field value as gotten from the migration definition into something the repo can understand
|
|
*
|
|
* @param mixed $fieldValue The Content Field value hash as gotten from the repo
|
|
* @param array $context The context for execution of the current migrations. Contains f.e. the path to the migration
|
|
* @return mixed the array / scalar / usable as field value in a migration definition
|
|
*/
|
|
public function fieldValueToHash($fieldValue, array $context = array());
|
|
}
|