phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md /var/www/html/products/total_control
phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md /var/www/html/products/total_control

Upgrade Status report

Total Control 8.x-2.0-beta2

Scanned on Sun, 07/14/2019 - 18:07.
32 errors found. 6 warnings found. Items categorized "Fix now" are uses of deprecated APIs from community unsupported core versions.
Status File name Line Error
Check manually modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerContentTypes.php 38 Call to deprecated function node_type_get_types(). Deprecated in Drupal 8.x, will be removed before Drupal 9.0.
Use ​\​Drupal​\​node​\​Entity​\​NodeType::loadMultiple().
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerContentTypes.php 51 Call to deprecated function drupal_get_destination(). Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
Use the redirect.destination service.
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerContentTypes.php 66 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerContentTypes.php 70 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerContentTypes.php 74 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerContentTypes.php 95 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerContentTypes.php 105 Call to deprecated function drupal_render(). Deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the
Check manually modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerContentTypes.php 120 Call to deprecated function node_type_get_types(). Deprecated in Drupal 8.x, will be removed before Drupal 9.0.
Use ​\​Drupal​\​node​\​Entity​\​NodeType::loadMultiple().
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerMenus.php 52 Call to deprecated function drupal_get_destination(). Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
Use the redirect.destination service.
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerMenus.php 64 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerMenus.php 68 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerMenus.php 81 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerMenus.php 100 Call to deprecated function drupal_render(). Deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerPanelPages.php 47 Call to deprecated function drupal_get_destination(). Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
Use the redirect.destination service.
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerPanelPages.php 56 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerPanelPages.php 61 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerPanelPages.php 71 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerPanelPages.php 80 Call to deprecated function drupal_render(). Deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerTaxonomy.php 51 Call to deprecated function drupal_get_destination(). Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
Use the redirect.destination service.
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerTaxonomy.php 59 Call to deprecated function db_query(). Deprecated 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,
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerTaxonomy.php 67 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerTaxonomy.php 71 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerTaxonomy.php 75 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerTaxonomy.php 95 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​AdministerTaxonomy.php 104 Call to deprecated function drupal_render(). Deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the
Check manually modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​ContentOverview.php 26 Call to deprecated function node_type_get_types(). Deprecated in Drupal 8.x, will be removed before Drupal 9.0.
Use ​\​Drupal​\​node​\​Entity​\​NodeType::loadMultiple().
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​ContentOverview.php 32 Call to deprecated function db_query(). Deprecated 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,
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​ContentOverview.php 41 Call to deprecated function db_query(). Deprecated 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,
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​ContentOverview.php 48 Call to deprecated function db_query(). Deprecated 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,
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​ContentOverview.php 66 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​ContentOverview.php 82 Call to deprecated function drupal_render(). Deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the
Check manually modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​ContentOverview.php 93 Call to deprecated function node_type_get_types(). Deprecated in Drupal 8.x, will be removed before Drupal 9.0.
Use ​\​Drupal​\​node​\​Entity​\​NodeType::loadMultiple().
Check manually modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​CreateContent.php 25 Call to deprecated function node_type_get_types(). Deprecated in Drupal 8.x, will be removed before Drupal 9.0.
Use ​\​Drupal​\​node​\​Entity​\​NodeType::loadMultiple().
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​CreateContent.php 28 Call to deprecated function drupal_get_destination(). Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
Use the redirect.destination service.
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​CreateContent.php 37 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​CreateContent.php 48 Call to deprecated method l() of class Drupal. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use ​\​Drupal​\​Core​\​Link instead.
Example:
Fix now modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​CreateContent.php 64 Call to deprecated function drupal_render(). Deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the
Check manually modules​/​contrib​/​total_control​/​src​/​Plugin​/​Block​/​CreateContent.php 75 Call to deprecated function node_type_get_types(). Deprecated in Drupal 8.x, will be removed before Drupal 9.0.
Use ​\​Drupal​\​node​\​Entity​\​NodeType::loadMultiple().

Comments

RajabNatshah created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Title: Fix uses of deprecated Drupal core APIs » Fix [Total Control] uses of deprecated Drupal core APIs
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Title: Fix [Total Control] uses of deprecated Drupal core APIs » Fix [Total Control Dashboard] uses of deprecated Drupal core APIs
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

StatusFileSize
new48.46 KB
rajab natshah’s picture

Title: Fix [Total Control Dashboard] uses of deprecated Drupal core APIs » Fix [Total Control Dashboard] uses of deprecated Drupal core APIs and standard Drupal Practice
rajab natshah’s picture

StatusFileSize
new49.28 KB
rajab natshah’s picture

StatusFileSize
new56.84 KB
rajab natshah’s picture

StatusFileSize
new57.68 KB
rajab natshah’s picture

StatusFileSize
new57.68 KB
rajab natshah’s picture

StatusFileSize
new58.32 KB
rajab natshah’s picture

rajab natshah’s picture

StatusFileSize
new75.57 KB

  • RajabNatshah committed 8fe5e19 on 8.x-2.x
    Issue #3067821 by RajabNatshah: Fix [Total Control Dashboard] uses of...
rajab natshah’s picture

Assigned: rajab natshah » mohammed j. razem
Status: Active » Needs review
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Issue tags: +Drupal 9 compatibility
rajab natshah’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rajab natshah’s picture