public function FlippyPager::flippy_use_pager in Glazed Theme Helper 8
Determine if the Flippy pager should be shown for the give node.
Parameters
$node: Node to check for pager
Return value
bool Boolean: TRUE if pager should be shown, FALSE if not
File
- src/
FlippyPager.php, line 219
Class
- FlippyPager
- Defines the flippy pager service.
Namespace
Drupal\glazed_helperCode
public function flippy_use_pager($node) {
if (!is_object($node)) {
return FALSE;
}
$types = theme_get_setting('prevnext_content_types');
return node_is_page($node) && isset($types[$node
->getType()]) && $types[$node
->getType()];
}