You are here

protected function Page::getPage in Search API Autocomplete 8

Retrieves the search page entity for this plugin.

Return value

\Drupal\search_api_page\SearchApiPageInterface|null The search page, or NULL if it couldn't be loaded.

2 calls to Page::getPage()
Page::calculateDependencies in src/Plugin/search_api_autocomplete/search/Page.php
Calculates dependencies for the configured plugin.
Page::createQuery in src/Plugin/search_api_autocomplete/search/Page.php
Creates a search query based on this search.

File

src/Plugin/search_api_autocomplete/search/Page.php, line 113

Class

Page
Provides autocomplete support for the search_api_page module.

Namespace

Drupal\search_api_autocomplete\Plugin\search_api_autocomplete\search

Code

protected function getPage() {

  /** @var \Drupal\search_api_page\SearchApiPageInterface $page */
  $page = $this
    ->getEntityTypeManager()
    ->getStorage('search_api_page')
    ->load($this
    ->getDerivativeId());
  return $page;
}