public function SearchApiPage::renderAsSnippets in Search API Pages 8
Whether to render the results as snippets.
Return value
bool TRUE when rendering as snippets.
Overrides SearchApiPageInterface::renderAsSnippets
File
- src/
Entity/ SearchApiPage.php, line 243
Class
- SearchApiPage
- Defines the Search page entity.
Namespace
Drupal\search_api_page\EntityCode
public function renderAsSnippets() {
return $this
->getStyle() === 'search_results';
}