protected function SearchApiAlterNodeAccess::getNode in Search API 7
Retrieves the node related to a search item.
In the default implementation for nodes, the item is already the node. Subclasses may override this to easily provide node access checks for items related to nodes.
1 call to SearchApiAlterNodeAccess::getNode()
- SearchApiAlterNodeAccess::alterItems in includes/
callback_node_access.inc - Alter items before indexing.
1 method overrides SearchApiAlterNodeAccess::getNode()
- SearchApiAlterCommentAccess::getNode in includes/
callback_comment_access.inc - Overrides SearchApiAlterNodeAccess::getNode().
File
- includes/
callback_node_access.inc, line 75 - Contains the SearchApiAlterNodeAccess class.
Class
- SearchApiAlterNodeAccess
- Adds node access information to node indexes.
Code
protected function getNode($item) {
return $item;
}