node_title_list
function node_title_list
node_title_list(StatementInterface $result, $title = NULL)
Gathers a listing of links to nodes.
Parameters
\Drupal\Core\Database\StatementInterface $result: A database result object from a query to fetch node entities. If your query joins the {comment_entity_statistics} table so that the comment_count field is available, a title attribute will be added to show the number of comments.
$title: (optional) A heading for the resulting list.
Return value
array|false A renderable array containing a list of linked node titles fetched from $result, or FALSE if there are no rows in $result.
File
- core/modules/node/登录查看完整内容