public function NodeOrderManagerInterface::selectNodes in Node Order 8
Finds all nodes that match selected taxonomy conditions.
NOTE: This is nearly a direct copy of taxonomy_select_nodes() -- see http://drupal.org/node/25801 if you find this sort of copy and paste upsetting...
Parameters
array $tids: An array of term IDs to match.
string $operator: How to interpret multiple IDs in the array. Can be "or" or "and".
int $depth: How many levels deep to traverse the taxonomy tree. Can be a nonnegative integer or "all".
bool $pager: Whether the nodes are to be used with a pager (the case on most Drupal pages) or not (in an XML feed, for example).
string $order: The order clause for the query that retrieve the nodes.
int $count: If $pager is TRUE, the number of nodes per page, or -1 to use the backward-compatible 'default_nodes_main' variable setting. If $pager is FALSE, the total number of nodes to select; or -1 to use the backward-compatible 'feed_default_items' variable setting; or 0 to select all nodes.
Return value
\Drupal\Core\Database\StatementInterface A resource identifier pointing to the query results.
1 method overrides NodeOrderManagerInterface::selectNodes()
- NodeOrderManager::selectNodes in src/
NodeOrderManager.php - Finds all nodes that match selected taxonomy conditions.
File
- src/
NodeOrderManagerInterface.php, line 76
Class
- NodeOrderManagerInterface
- Provides an interface defining a NodeOrderManager.
Namespace
Drupal\nodeorderCode
public function selectNodes($tids = [], $operator = 'or', $depth = 0, $pager = TRUE, $order = 'n.sticky DESC, n.created DESC', $count = -1);