Drupal 9 Deprecated Code Report

Created on 6 August 2019, over 5 years ago
Updated 26 April 2024, 7 months ago

10/10 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ -------------------------------------------------------------------------
Line includes/track_da_files.admin.inc
------ -------------------------------------------------------------------------
524 Call to deprecated function db_select():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
540 Call to deprecated function format_date():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal::service('date.formatter')->format().
544 Call to deprecated function node_load():
in Drupal 8.x, will be removed before Drupal 9.0.
Use \Drupal\node\Entity\Node::load().
561 Call to deprecated function user_load():
in Drupal 8.x, will be removed before Drupal 9.0.
Use \Drupal\user\Entity\User::load().
671 Call to deprecated function db_select():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
688 Call to deprecated function format_date():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal::service('date.formatter')->format().
692 Call to deprecated function file_load():
in Drupal 8.x, will be removed before Drupal 9.0.
Use \Drupal\file\Entity\File::load().
728 Call to deprecated function file_load():
in Drupal 8.x, will be removed before Drupal 9.0.
Use \Drupal\file\Entity\File::load().
743 Call to deprecated function drupal_render():
as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the
756 Call to deprecated function user_load():
in Drupal 8.x, will be removed before Drupal 9.0.
Use \Drupal\user\Entity\User::load().
771 Call to deprecated function drupal_render():
as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the
------ -------------------------------------------------------------------------

------ ------------------------------------------------------------------
Line includes/track_da_files_formatter.inc
------ ------------------------------------------------------------------
73 Call to deprecated function drupal_render():
as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the
------ ------------------------------------------------------------------

------ ---------------------------------------------------------------------------
Line src/Controller/TrackDaFilesController.php
------ ---------------------------------------------------------------------------
73 Call to deprecated method getUsername() of class Drupal\user\Entity\User:
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\Session\AccountInterface::getAccountName() or
\Drupal\user\UserInterface::getDisplayName() instead.
212 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
218 Call to deprecated function format_date():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal::service('date.formatter')->format().
230 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
370 Call to deprecated function format_date():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal::service('date.formatter')->format().
375 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
379 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
392 Call to deprecated method getUsername() of class Drupal\user\Entity\User:
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\Session\AccountInterface::getAccountName() or
\Drupal\user\UserInterface::getDisplayName() instead.
405 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
493 Call to deprecated function format_date():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal::service('date.formatter')->format().
549 Call to deprecated function file_uri_scheme():
in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystem::uriScheme().
568 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
628 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
------ ---------------------------------------------------------------------------

------ -----------------------------------------------------------
Line src/Plugin/Field/FieldFormatter/TrackDaFilesFormatter.php
------ -----------------------------------------------------------
53 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
------ -----------------------------------------------------------

------ -------------------------------------------------------------------------
Line track_da_files.module
------ -------------------------------------------------------------------------
138 Call to deprecated function file_uri_scheme():
in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystem::uriScheme().
156 Call to deprecated function file_load():
in Drupal 8.x, will be removed before Drupal 9.0.
Use \Drupal\file\Entity\File::load().
174 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
181 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
191 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
212 Call to deprecated function db_insert():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call insert() on it. For example,
224 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
228 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
233 Call to deprecated function db_insert():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call insert() on it. For example,
315 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
------ -------------------------------------------------------------------------

[ERROR] Found 36 errors

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India joy29

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024