protected function getSingleFieldValue($value, FieldDefinition $fieldDefinition, $contentTypeIdentifier, array $context = array())
    {
        // booleans were handled here. They are now handled as complextypes

        // q: do we really want this to happen by default on all scalar field values?
        // Note: if you want this *not* to happen, register a complex field for your scalar field...
        $value = $this->referenceResolver->resolveReference($value);

        return $value;
    }
protected function getSingleFieldValue($value, FieldDefinition $fieldDefinition, $contentTypeIdentifier, array $context = array())
    {
        // booleans were handled here. They are now handled as complextypes

        // q: do we really want this to happen by default on all scalar field values?
        // Note: if you want this *not* to happen, register a complex field for your scalar field...
        $value = $this->referenceResolver->resolveReference($value);

        return $value;
    }
protected function getSingleFieldValue ( $ value , FieldDefinition $ fieldDefinition , $ contentTypeIdentifier , array $ context = array ( ) ) { // booleans were handled here. They are now handled as complextypes // q: do we really want this to happen by default on all scalar field values? // Note: if you want this *not* to happen, register a complex field for your scalar field... $ value = $ this -> referenceResolver -> resolveReference ( $ value ) ; return $ value ; }
Create the field value for a primitive field from the migration definition hash

@param mixed $value
@param FieldDefinition $fieldDefinition
@param string $contentTypeIdentifier
@param array $context
@throws \InvalidArgumentException
@return mixed
Create the field value for a primitive field from the migration definition hash