public function isFieldEmpty(Content $content, $fieldDefIdentifier, $forcedLanguage = null)
    {
        $field = $this->translationHelper->getTranslatedField($content, $fieldDefIdentifier, $forcedLanguage);
        $fieldDefinition = $content->getContentType()->getFieldDefinition($fieldDefIdentifier);

        return $this
            ->fieldTypeService
            ->getFieldType($fieldDefinition->fieldTypeIdentifier)
            ->isEmptyValue($field->value);
    }
public function isFieldEmpty(Content $content, $fieldDefIdentifier, $forcedLanguage = null)
    {
        $field = $this->translationHelper->getTranslatedField($content, $fieldDefIdentifier, $forcedLanguage);
        $fieldDefinition = $content->getContentType()->getFieldDefinition($fieldDefIdentifier);

        return $this
            ->fieldTypeService
            ->getFieldType($fieldDefinition->fieldTypeIdentifier)
            ->isEmptyValue($field->value);
    }
public function isFieldEmpty ( Content $ content , $ fieldDefIdentifier , $ forcedLanguage = null ) { $ field = $ this -> translationHelper -> getTranslatedField ( $ content , $ fieldDefIdentifier , $ forcedLanguage ) ; $ fieldDefinition = $ content -> getContentType ( ) -> getFieldDefinition ( $ fieldDefIdentifier ) ; return $ this -> fieldTypeService -> getFieldType ( $ fieldDefinition -> fieldTypeIdentifier ) -> isEmptyValue ( $ field -> value ) ; }
Checks if provided field can be considered empty.

@param \eZ\Publish\API\Repository\Values\Content\Content $content
@param string $fieldDefIdentifier
@param null $forcedLanguage

@return bool
Checks if provided field can be considered empty .