src/Model/Table/SavedSearchesTable.php
public function beforeMarshal(Event $event, ArrayObject $data, ArrayObject $options) : void
    {
        // @todo this will be removed once saved searches table schema is adjusted
        $saved = Hash::get($data, 'content.saved', []);
        if (! empty($saved)) {
            $data['content']['latest'] = $saved;
        }
    }
public function beforeMarshal(Event $event, ArrayObject $data, ArrayObject $options) : void
    {
        // @todo this will be removed once saved searches table schema is adjusted
        $saved = Hash::get($data, 'content.saved', []);
        if (! empty($saved)) {
            $data['content']['latest'] = $saved;
        }
    }
public function beforeMarshal ( Event $ event , ArrayObject $ data , ArrayObject $ options ) : void { // @todo this will be removed once saved searches table schema is adjusted $ saved = Hash :: get ( $ data , 'content.saved' , [ ] ) ; if ( ! empty ( $ saved ) ) { $ data [ 'content' ] [ 'latest' ] = $ saved ; } }
Structures "content" data to suported format.

@param \Cake\Event\Event $event Event object
@param \ArrayObject $data Request data
@param \ArrayObject $options Marshaller options
@return void
Structures content data to suported format .