You are here

public function FlippyPager::flippy_use_pager in Flippy 8

Determine if the Flippy pager should be shown for the give node.

Parameters

Drupal\node\Entity\Node $node: Node to check for pager.

Return value

bool Boolean: TRUE if pager should be shown, FALSE if not.

File

src/FlippyPager.php, line 400

Class

FlippyPager
Defines the flippy pager service.

Namespace

Drupal\flippy

Code

public function flippy_use_pager(Node $node) {
  if (!is_object($node)) {
    return FALSE;
  }
  return node_is_page($node) && $this->flippySettings
    ->get('flippy_' . $node
    ->getType());
}