Core/MetaNameSchema.php
protected function handleImageAssetValue(ImageAssetValue $value, $fieldDefinitionIdentifier, $languageCode)
    {
        if (!$value->destinationContentId) {
            return '';
        }

        $content = $this->repository->getContentService()->loadContent($value->destinationContentId);

        foreach ($content->getFields() as $field) {
            if ($field->value instanceof ImageValue) {
                return $this->handleImageValue($field->value, $fieldDefinitionIdentifier, $languageCode);
            }
        }

        return  '';
    }
protected function handleImageAssetValue(ImageAssetValue $value, $fieldDefinitionIdentifier, $languageCode)
    {
        if (!$value->destinationContentId) {
            return '';
        }

        $content = $this->repository->getContentService()->loadContent($value->destinationContentId);

        foreach ($content->getFields() as $field) {
            if ($field->value instanceof ImageValue) {
                return $this->handleImageValue($field->value, $fieldDefinitionIdentifier, $languageCode);
            }
        }

        return  '';
    }
protected function handleImageAssetValue ( ImageAssetValue $ value , $ fieldDefinitionIdentifier , $ languageCode ) { if ( ! $ value -> destinationContentId ) { return '' ; } $ content = $ this -> repository -> getContentService ( ) -> loadContent ( $ value -> destinationContentId ) ; foreach ( $ content -> getFields ( ) as $ field ) { if ( $ field -> value instanceof ImageValue ) { return $ this -> handleImageValue ( $ field -> value , $ fieldDefinitionIdentifier , $ languageCode ) ; } } return '' ; }
Handle a Image Asset attribute

@param ImageAssetValue $value
@param string     $fieldDefinitionIdentifier
@param string     $languageCode

@return string
Handle a Image Asset attribute