src/Utility/Search.php
protected function preSave(array $data): string
    {
        /**
         * @var \Search\Model\Entity\SavedSearch
         */
        $entity = $this->searchTable->newEntity();

        $entity = $this->normalize($entity, $data, $data);
        $this->searchTable->save($entity);

        return $entity->id;
    }
protected function preSave(array $data): string
    {
        /**
         * @var \Search\Model\Entity\SavedSearch
         */
        $entity = $this->searchTable->newEntity();

        $entity = $this->normalize($entity, $data, $data);
        $this->searchTable->save($entity);

        return $entity->id;
    }
protected function preSave ( array $ data ) : string { /**
         * @var \Search\Model\Entity\SavedSearch
         */ $ entity = $ this -> searchTable -> newEntity ( ) ; $ entity = $ this -> normalize ( $ entity , $ data , $ data ) ; $ this -> searchTable -> save ( $ entity ) ; return $ entity -> id ; }
Method that pre-saves search and returns saved record id.

@param mixed[] $data Search data
@return string
Method that pre - saves search and returns saved record id .