Generates a generic representation of the scalar, hash or list given in
$hashValue into the document, using an element of $hashElementName as
its parent.
abstract public generateFieldTypeHash ( string $hashElementName, mixed $hashValue ) | ||
$hashElementName | string | |
$hashValue | mixed |
/** * Serializes the given $hash with $generator into $elementName. * * @param string $elementName * @param \eZ\Publish\Core\REST\Common\Output\Generator $generator * @param mixed $hash */ protected function serializeHash($elementName, Generator $generator, $hash) { $generator->generateFieldTypeHash($elementName, $hash); }