public function isFieldEmpty(Content $content, $fieldDefIdentifier, $forcedLanguage = null)
    {
        if ($fieldDefIdentifier instanceof Field) {
            $fieldDefIdentifier = $fieldDefIdentifier->fieldDefIdentifier;
        }

        return $this->fieldHelper->isFieldEmpty($content, $fieldDefIdentifier, $forcedLanguage);
    }
public function isFieldEmpty(Content $content, $fieldDefIdentifier, $forcedLanguage = null)
    {
        if ($fieldDefIdentifier instanceof Field) {
            $fieldDefIdentifier = $fieldDefIdentifier->fieldDefIdentifier;
        }

        return $this->fieldHelper->isFieldEmpty($content, $fieldDefIdentifier, $forcedLanguage);
    }
public function isFieldEmpty ( Content $ content , $ fieldDefIdentifier , $ forcedLanguage = null ) { if ( $ fieldDefIdentifier instanceof Field ) { $ fieldDefIdentifier = $ fieldDefIdentifier -> fieldDefIdentifier ; } return $ this -> fieldHelper -> isFieldEmpty ( $ content , $ fieldDefIdentifier , $ forcedLanguage ) ; }
Checks if a given field is considered empty.
This method accepts field as Objects or by identifiers.

@param \eZ\Publish\API\Repository\Values\Content\Content $content
@param \eZ\Publish\API\Repository\Values\Content\Field|string $fieldDefIdentifier Field or Field Identifier to
get the value from.
@param string $forcedLanguage Locale we want the content name translation in (e.g. "fre-FR").
Null by default (takes current locale).

@return bool
Checks if a given field is considered empty . This method accepts field as Objects or by identifiers .