public function SearchApiPage::isRenderedInCurrentRequest in Search API Pages 8
Returns true if the display is being rendered in the current request.
Return value
bool True when the display is rendered in the current request.
Overrides DisplayPluginBase::isRenderedInCurrentRequest
File
- src/
Plugin/ search_api/ display/ SearchApiPage.php, line 20
Class
- SearchApiPage
- Represents a Search API Pages search display.
Namespace
Drupal\search_api_page\Plugin\search_api\displayCode
public function isRenderedInCurrentRequest() {
if ($path = $this
->getPath()) {
$current_path = $this
->getCurrentPath()
->getPath();
return strpos($current_path, $path) !== FALSE;
}
return FALSE;
}