src/Utility/Search.php
public function get(string $id): SavedSearch
    {
        $id = !empty($id) ? $id : $this->create([]);
        /**
         * @var \Search\Model\Entity\SavedSearch
         */
        $entity = $this->searchTable->get($id);
        $entity = $this->normalize($entity, $entity->get('content'), $entity->get('content'));

        return $entity;
    }
public function get(string $id): SavedSearch
    {
        $id = !empty($id) ? $id : $this->create([]);
        /**
         * @var \Search\Model\Entity\SavedSearch
         */
        $entity = $this->searchTable->get($id);
        $entity = $this->normalize($entity, $entity->get('content'), $entity->get('content'));

        return $entity;
    }
public function get ( string $ id ) : SavedSearch { $ id = ! empty ( $ id ) ? $ id : $ this -> create ( [ ] ) ; /**
         * @var \Search\Model\Entity\SavedSearch
         */ $ entity = $ this -> searchTable -> get ( $ id ) ; $ entity = $ this -> normalize ( $ entity , $ entity -> get ( 'content' ) , $ entity -> get ( 'content' ) ) ; return $ entity ; }
Get search.

@param string $id Existing search id
@return \Search\Model\Entity\SavedSearch
Get search .