This document is indended to quickly save upgrade information. During the process of upgrading Tripal Core we're going to place useful information here until it can be more formally written up into docs.
These functions have been upgraded and thus can be used as is. However, the new way is use a logger service as shown below.
Changelog: https://www.drupal.org/node/2774931
Changelog: https://www.drupal.org/node/2169605
Changelog:
How to upgrade D7 variables to D8's state system
https://www.drupal.org/docs/upgrading-and-converting-drupal-7-modules/step-5-how-to-upgrade-d7-variables-to-d8s-state
It is important to uninstall then install the module each time you add/test another variable.
Changelog: https://www.drupal.org/node/1894902
Changelog: https://www.drupal.org/node/1935708
Let Drupal know about your module.
See this step by step guide to converting your module.info to module.info.yml.
Changelog: https://www.drupal.org/node/1800686
Routes are responsible for associating a path to controllers. Converting Drupal 7 hook_menu() items to Drupal 8 APIs should start with defining the routes for the items.
Introductory Drupal 8 Routes:
https://www.drupal.org/node/2116767
Structures of Routes:
https://www.drupal.org/docs/drupal-apis/routing-system/structure-of-routes
D7 - D8 upgrade tutorial: Convert hook_menu to Drupal 8 APIs:
https://www.drupal.org/docs/converting-drupal-7-modules-to-drupal-8/d7-to-d8-upgrade-tutorial-convert-hook_menu-and-hook
Changelog: https://www.drupal.org/node/2311427
Permissions are now defined in $module.permissions.yml file instead of using hook_permission() and there is scarce information about what each permission
options means other than the following.
machine name of the permission required to visit the URL.
title is the human readable information appearing in the Permissions page.
When "restrict access" is set to "true" a warning about site security will be displayed on the Permissions page.
description is optional
An example:
Drupal PHP Unit Test
https://www.drupal.org/docs/automated-testing/phpunit-in-drupal/phpunit-browser-test-tutorial
Used in your configuration YML files
https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-schemametadata
An example:
https://www.drupal.org/docs/drupal-apis/configuration-api/creating-a-configuration-entity-type
https://www.drupal.org/docs/drupal-apis/javascript-api/ajax-forms