public function ExcludeNodeTitleManager::isNodeExcluded in Exclude Node Title 8
Tells if node is in exclude list.
Parameters
mixed $param: Can be a node object or integer value (nid).
Overrides ExcludeNodeTitleManagerInterface::isNodeExcluded
1 call to ExcludeNodeTitleManager::isNodeExcluded()
- ExcludeNodeTitleManager::isTitleExcluded in src/
ExcludeNodeTitleManager.php - Tells if node should get hidden or not.
File
- src/
ExcludeNodeTitleManager.php, line 201
Class
- ExcludeNodeTitleManager
- Service class for Exclude Node Title module settings management.
Namespace
Drupal\exclude_node_titleCode
public function isNodeExcluded($param) {
if (is_object($param) && $param instanceof NodeInterface) {
$param = $param
->id();
}
if (!is_numeric($param)) {
return FALSE;
}
return in_array($param, $this
->getExcludedNodes());
}