public function getContent($textquery, $parameters = [], &$pager = [], $whereparameters = []) { return $this->legacy()->getContent($textquery, $parameters, $pager, $whereparameters); }
/** * Get the content records, and fallback a page if none found. * * @param string $contentTypeSlug * @param array $contentParameters * @param ListingOptions $options * * @return Content|false */ protected function getContent($contentTypeSlug, array $contentParameters, ListingOptions $options) { $records = $this->em->getContent($contentTypeSlug, $contentParameters); // UGLY HACK! Remove when cutting over to the new storage layer! $records = empty($records) ? false : $records; if ($records === false && $options->getPage() !== null) { $contentParameters['page'] = $options->getPreviousPage(); $records = $this->em->getContent($contentTypeSlug, $contentParameters); } return $records; }