City-of-Bloomington / drupal-theme-cob

COB Theme for the drupal website
https://bloomington.in.gov
GNU Affero General Public License v3.0
2 stars 1 forks source link

Upgrade to support Drupal 9 #209

Closed inghamn closed 2 years ago

inghamn commented 3 years ago

cob.theme uses a deprecated and remove function:

Call to deprecated function drupal_get_messages(). Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use Drupal\Core\Messenger\MessengerInterface::all() or \Drupal\Core\Messenger\MessengerInterface::messagesByType() instead.

https://api.drupal.org/api/drupal/8.9.x/search/drupal_get_messages

Add core_version_requirement: ^8 || ^9 to designate that the module is compatible with Drupal 9. See https://drupal.org/node/3070687.

inghamn commented 3 years ago

https://github.com/City-of-Bloomington/drupal-customizations/issues/36

inghamn commented 2 years ago

Drupal 9 has a completely rewritten Media system in core. Our use of cover_image and content_images relied on the old Media Entity module. We need to update our theme to work with the new Media in core.

For the most part, things should be compatible, although the default field names for the images in Media seem to have changed.