src/Utility/Search.php
public function reset(SavedSearch $entity) : ?SavedSearch
    {
        $content = $entity->get('content');

        // for backward compatibility
        $saved = isset($content['saved']) ? $content['saved'] : $content;
        $entity = $this->normalize($entity, $saved, $saved);

        return $this->searchTable->save($entity) ? $entity : null;
    }
public function reset(SavedSearch $entity) : ?SavedSearch
    {
        $content = $entity->get('content');

        // for backward compatibility
        $saved = isset($content['saved']) ? $content['saved'] : $content;
        $entity = $this->normalize($entity, $saved, $saved);

        return $this->searchTable->save($entity) ? $entity : null;
    }
public function reset ( SavedSearch $ entity ) : ? SavedSearch { $ content = $ entity -> get ( 'content' ) ; // for backward compatibility $ saved = isset ( $ content [ 'saved' ] ) ? $ content [ 'saved' ] : $ content ; $ entity = $ this -> normalize ( $ entity , $ saved , $ saved ) ; return $ this -> searchTable -> save ( $ entity ) ? $ entity : null ; }
Reset search.

@param \Search\Model\Entity\SavedSearch $entity Search entity
@return \Search\Model\Entity\SavedSearch|null
Reset search .