Rest/Field/TypeValue.php
public function ezobjectrelation(Field $field, Content $content, $language, $imageFieldIdentifier, $options = [])
    {
        $fields = $content->getFieldsByLanguage($language);
        foreach ($fields as $type => $field) {
            if ($type == $imageFieldIdentifier) {
                return $this->ezimage($field, $content, $language, $imageFieldIdentifier, $options);
            }
        }

        return '';
    }
public function ezobjectrelation(Field $field, Content $content, $language, $imageFieldIdentifier, $options = [])
    {
        $fields = $content->getFieldsByLanguage($language);
        foreach ($fields as $type => $field) {
            if ($type == $imageFieldIdentifier) {
                return $this->ezimage($field, $content, $language, $imageFieldIdentifier, $options);
            }
        }

        return '';
    }
public function ezobjectrelation ( Field $ field , Content $ content , $ language , $ imageFieldIdentifier , $ options = [ ] ) { $ fields = $ content -> getFieldsByLanguage ( $ language ) ; foreach ( $ fields as $ type => $ field ) { if ( $ type == $ imageFieldIdentifier ) { return $ this -> ezimage ( $ field , $ content , $ language , $ imageFieldIdentifier , $ options ) ; } } return '' ; }
Method for parsing ezobjectrelation field.
For now related fields refer to images.

@param \eZ\Publish\API\Repository\Values\Content\Field $field
@param \eZ\Publish\API\Repository\Values\Content\Content $content
@param string $language
@param string $imageFieldIdentifier
@param array $options

@return string
Method for parsing ezobjectrelation field . For now related fields refer to images .