public function getAssetField(Content $content): Field
    {
        if (!$this->isAsset($content)) {
            throw new InvalidArgumentException('contentId', "Content {$content->id} is not a image asset!");
        }

        return $content->getField($this->mappings['content_field_identifier']);
    }
public function getAssetField(Content $content): Field
    {
        if (!$this->isAsset($content)) {
            throw new InvalidArgumentException('contentId', "Content {$content->id} is not a image asset!");
        }

        return $content->getField($this->mappings['content_field_identifier']);
    }
public function getAssetField ( Content $ content ) : Field { if ( ! $ this -> isAsset ( $ content ) ) { throw new InvalidArgumentException ( 'contentId' , "Content {$content->id} is not a image asset!" ) ; } return $ content -> getField ( $ this -> mappings [ 'content_field_identifier' ] ) ; }
Returns field which is used to store the Image Asset value from specified content.

@param \eZ\Publish\API\Repository\Values\Content\Content $content

@return \eZ\Publish\API\Repository\Values\Content\Field

@throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException
@throws \eZ\Publish\API\Repository\Exceptions\NotFoundException
Returns field which is used to store the Image Asset value from specified content .