Problem/Motivation

Autoloading hooks in the file (commerce_log.views.inc) is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Move the functions in this file to either the .module file or other appropriate location. See https://www.drupal.org/node/3489765

Autoloading hooks in the file (commerce_order.views.inc) is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Move the functions in this file to either the .module file or other appropriate location. See https://www.drupal.org/node/3489765

Autoloading hooks in the file (commerce_payment.views.inc) is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Move the functions in this file to either the .module file or other appropriate location. See https://www.drupal.org/node/3489765

Autoloading hooks in the file (commerce_product.views.inc) is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Move the functions in this file to either the .module file or other appropriate location. See https://www.drupal.org/node/3489765

Autoloading hooks in the file (commerce_price.views.inc) is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Move the functions in this file to either the .module file or other appropriate location. See https://www.drupal.org/node/3489765

Autoloading hooks in the file (commerce_promotion.views.inc) is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Move the functions in this file to either the .module file or other appropriate location. See https://www.drupal.org/node/3489765

Proposed resolution

Move the contents of all *.views.inc files to the main module files.

Remaining tasks

Make the changes.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

Issue fork commerce-3553241

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

damienmckenna created an issue. See original summary.

damienmckenna’s picture

Status: Active » Needs review

The MR moves all views hooks to the corresponding module file.

jsacksick’s picture

Version: 3.0.x-dev » 3.x-dev

@damienmckenna: Thank you for this. Could you open an MR against 3.x, 3.0.x isn't the right branch.

jsacksick’s picture

Title: Autoloading hooks in files are deprecated » Autoloading views hooks in files are deprecated
Status: Needs review » Fixed

Merged, thank you!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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