You are here

public function SearchApiPage::renderAsViewModes in Search API Pages 8

Whether to render the results as view modes.

Return value

bool TRUE when rendering as view modes.

Overrides SearchApiPageInterface::renderAsViewModes

File

src/Entity/SearchApiPage.php, line 236

Class

SearchApiPage
Defines the Search page entity.

Namespace

Drupal\search_api_page\Entity

Code

public function renderAsViewModes() {
  return $this
    ->getStyle() === 'view_modes';
}