private function isValid($row)
    {
        $result = false;

        // Check if facet_display_mode is defaulted.
        if ((int) $row['facet_display_mode'] !== FilterDisplayMode::AUTO_DISPLAYED) {
            $result = true;
        }

        // Check remaining fields are not null.
        unset($row[$this->getIdFieldName()]);
        unset($row['attribute_id']);
        unset($row['facet_display_mode']);

        if (!empty(array_filter($row, 'strlen'))) { // Preserve 0 values.
            $result = true;
        }

        return $result;
    }
private function isValid($row)
    {
        $result = false;

        // Check if facet_display_mode is defaulted.
        if ((int) $row['facet_display_mode'] !== FilterDisplayMode::AUTO_DISPLAYED) {
            $result = true;
        }

        // Check remaining fields are not null.
        unset($row[$this->getIdFieldName()]);
        unset($row['attribute_id']);
        unset($row['facet_display_mode']);

        if (!empty(array_filter($row, 'strlen'))) { // Preserve 0 values.
            $result = true;
        }

        return $result;
    }
private function isValid ( $ row ) { $ result = false ; // Check if facet_display_mode is defaulted. if ( ( int ) $ row [ 'facet_display_mode' ] !== FilterDisplayMode :: AUTO_DISPLAYED ) { $ result = true ; } // Check remaining fields are not null. unset ( $ row [ $ this -> getIdFieldName ( ) ] ) ; unset ( $ row [ 'attribute_id' ] ) ; unset ( $ row [ 'facet_display_mode' ] ) ; if ( ! empty ( array_filter ( $ row , 'strlen' ) ) ) { // Preserve 0 values. $ result = true ; } return $ result ; }
Check if a given row is relevant to save.

@param array $row A row to be saved in table.

@return boolean
Check if a given row is relevant to save .