tracker.pages.inc 1022 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * @file
  4. * User page callbacks for tracker.module.
  5. */
  6. use Drupal\tracker\Controller\TrackerController;
  7. /**
  8. * Page callback: Generates a page of tracked nodes for the site.
  9. *
  10. * Queries the database for info, adds RDFa info if applicable, and generates
  11. * the render array that will be used to render the page.
  12. *
  13. * @param \Drupal\user\UserInterface $account
  14. * (optional) The user account to track.
  15. *
  16. * @return array
  17. * A renderable array.
  18. *
  19. * @deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use
  20. * \Drupal\tracker\Controller\TrackerController::buildContent() instead.
  21. *
  22. * @see https://www.drupal.org/node/3030645
  23. */
  24. function tracker_page($account = NULL) {
  25. @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);
  26. return \Drupal::classResolver(TrackerController::class)->buildContent($account);
  27. }