public function DisplayPluginBase::isPagerEnabled in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::isPagerEnabled()
Whether the display is using a pager or not.
Return value
bool
Overrides DisplayPluginInterface::isPagerEnabled
File
- core/
modules/ views/ src/ Plugin/ views/ display/ DisplayPluginBase.php, line 308
Class
- DisplayPluginBase
- Base class for views display plugins.
Namespace
Drupal\views\Plugin\views\displayCode
public function isPagerEnabled() {
if ($this
->usesPager()) {
$pager = $this
->getPlugin('pager');
if ($pager) {
return $pager
->usePager();
}
}
return FALSE;
}