public function DisplayPluginBase::getPath in Search API 8
Returns the base path used by this display.
Return value
string|null The base path for this display, or NULL if there is none.
Overrides DisplayInterface::getPath
3 calls to DisplayPluginBase::getPath()
- DisplayPluginBase::getUrl in src/
Display/ DisplayPluginBase.php - Returns the URL of this display.
- DisplayPluginBase::isRenderedInCurrentRequest in src/
Display/ DisplayPluginBase.php - Returns true if the display is being rendered in the current request.
- ViewsDisplayBase::getPath in src/
Plugin/ search_api/ display/ ViewsDisplayBase.php - Returns the base path used by this display.
1 method overrides DisplayPluginBase::getPath()
- ViewsDisplayBase::getPath in src/
Plugin/ search_api/ display/ ViewsDisplayBase.php - Returns the base path used by this display.
File
- src/
Display/ DisplayPluginBase.php, line 150
Class
- DisplayPluginBase
- Defines a base class from which other display classes may extend.
Namespace
Drupal\search_api\DisplayCode
public function getPath() {
$plugin_definition = $this
->getPluginDefinition();
if (!empty($plugin_definition['path'])) {
return $plugin_definition['path'];
}
return NULL;
}