You are here

function tracker_page in Drupal 8

Same name and namespace in other branches
  1. 4 modules/tracker.module \tracker_page()
  2. 5 modules/tracker/tracker.module \tracker_page()
  3. 6 modules/tracker/tracker.pages.inc \tracker_page()
  4. 7 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
User page callbacks for tracker.module.

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);
}