function tracker_page

Same name in other branches
  1. 7.x modules/tracker/tracker.pages.inc \tracker_page()

Page callback: Generates a page of tracked nodes for the site.

Queries the database for info, adds RDFa info if applicable, and generates the render array that will be used to render the page.

Parameters

\Drupal\user\UserInterface $account: (optional) The user account to track.

Return value

array A renderable array.

Deprecated

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\tracker\Controller\TrackerController::buildContent() instead.

See also

https://www.drupal.org/node/3030645

1 call to tracker_page()
TrackerLegacyTest::testDeprecatedTrackerPage in core/modules/tracker/tests/src/Kernel/TrackerLegacyTest.php
@expectedDeprecation tracker_page is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\tracker\Controller\TrackerController::buildContent() instead. See https://www.drupal.org/node/3030645

File

core/modules/tracker/tracker.pages.inc, line 27

Code

function tracker_page($account = NULL) {
    @trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \\Drupal\\tracker\\Controller\\TrackerController::buildContent() instead. See https://www.drupal.org/node/3030645', E_USER_DEPRECATED);
    return \Drupal::classResolver(TrackerController::class)->buildContent($account);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.