original_string: public function findFilterDataBySlug(Query $query, array $options)
      {
          if (!isset($options['request']) || get_class($options['request']) !== ServerRequest::class) {
              user_error('The request query option must exist and must be of type Cake\Http\ServerRequest.');
          }
  
          $encryptedFilterData = $this->_findEncryptedFilterData($query, $options['request'])->first();
  
          if ($encryptedFilterData) {
              $encryptedFilterData = $encryptedFilterData->toArray();
              return $this->_decodeFilterData($encryptedFilterData['filter_data']);
          }
  
          return [];
      }
code: public function findFilterDataBySlug(Query $query, array $options)
      {
          if (!isset($options['request']) || get_class($options['request']) !== ServerRequest::class) {
              user_error('The request query option must exist and must be of type Cake\Http\ServerRequest.');
          }
  
          $encryptedFilterData = $this->_findEncryptedFilterData($query, $options['request'])->first();
  
          if ($encryptedFilterData) {
              $encryptedFilterData = $encryptedFilterData->toArray();
              return $this->_decodeFilterData($encryptedFilterData['filter_data']);
          }
  
          return [];
      }
code_tokens: public function findFilterDataBySlug ( Query $ query , array $ options ) { if ( ! isset ( $ options [ 'request' ] ) || get_class ( $ options [ 'request' ] ) !== ServerRequest :: class ) { user_error ( 'The request query option must exist and must be of type Cake\Http\ServerRequest.' ) ; } $ encryptedFilterData = $ this -> _findEncryptedFilterData ( $ query , $ options [ 'request' ] ) -> first ( ) ; if ( $ encryptedFilterData ) { $ encryptedFilterData = $ encryptedFilterData -> toArray ( ) ; return $ this -> _decodeFilterData ( $ encryptedFilterData [ 'filter_data' ] ) ; } return [ ] ; }
docstring: Find stored filter data for a given slug.
  
  @param Query $query
  @param array $options
  @return array
docstring_tokens: Find stored filter data for a given slug .