You are here

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\Entity

Code

public function renderAsSnippets() {
  return $this
    ->getStyle() === 'search_results';
}