eZ\Publish\Core\FieldType\RichText\Type::isEmptyValue PHP Method

isEmptyValue() public method

Returns if the given $value is considered empty by the field type.
public isEmptyValue ( eZ\Publish\SPI\FieldType\Value $value ) : boolean
$value eZ\Publish\SPI\FieldType\Value
return boolean
    public function isEmptyValue(SPIValue $value)
    {
        if ($value->xml === null) {
            return true;
        }
        return !$value->xml->documentElement->hasChildNodes();
    }