You are here

public function NodeViewCountRecordsManagerInterface::isRecordableForUserRole in Node view count 8

Checks whether node should be counted in statistics for given user role.

Parameters

\Drupal\Core\Session\AccountInterface $account: User account object to fetch roles from.

Return value

bool TRUE if node should be counted in statistics for given user role.

1 method overrides NodeViewCountRecordsManagerInterface::isRecordableForUserRole()
NodeViewCountRecordsManager::isRecordableForUserRole in src/NodeViewCountRecordsManager.php
Checks whether node should be counted in statistics for given user role.

File

src/NodeViewCountRecordsManagerInterface.php, line 69

Class

NodeViewCountRecordsManagerInterface
Provides an interface for interfering with nodeviewcount records.

Namespace

Drupal\nodeviewcount

Code

public function isRecordableForUserRole(AccountInterface $account);