public function findSitemapRecords(Query $query, array $options) {
		$query = $query
			->where($this->_config['conditions'])
			->cache("sitemap_{$query->repository()->alias()}", $this->_config['cacheConfigKey'])
			->order($this->_config['order'])
			->formatResults(function ($results) {
				return $this->mapResults($results);
			});

		if (!empty($this->_config['fields'])) {
			$query = $query->select($this->_config['fields']);
		}

		return $query;
	}
public function findSitemapRecords(Query $query, array $options) {
		$query = $query
			->where($this->_config['conditions'])
			->cache("sitemap_{$query->repository()->alias()}", $this->_config['cacheConfigKey'])
			->order($this->_config['order'])
			->formatResults(function ($results) {
				return $this->mapResults($results);
			});

		if (!empty($this->_config['fields'])) {
			$query = $query->select($this->_config['fields']);
		}

		return $query;
	}
public function findSitemapRecords ( Query $ query , array $ options ) { $ query = $ query -> where ( $ this -> _config [ 'conditions' ] ) -> cache ( "sitemap_{$query->repository()->alias()}" , $ this -> _config [ 'cacheConfigKey' ] ) -> order ( $ this -> _config [ 'order' ] ) -> formatResults ( function ( $ results ) { return $ this -> mapResults ( $ results ) ; } ) ; if ( ! empty ( $ this -> _config [ 'fields' ] ) ) { $ query = $ query -> select ( $ this -> _config [ 'fields' ] ) ; } return $ query ; }
Find the Sitemap Records for a Table.

@param \Cake\ORM\Query $query The Query being modified.
@param array $options The array of options for the find.
@return \Cake\ORM\Query Returns the modified Query object.
Find the Sitemap Records for a Table .