Drupal 10 Deprecation warnings

Created on 14 October 2021, about 3 years ago
Updated 11 February 2023, almost 2 years ago

Problem/Motivation

I noticed there are some deprecation warnings on theme functions making the module not compatible with Drupal 10.

User deprecated function: Theme functions are deprecated in drupal:8.0.0 and are removed from drupal:10.0.0. Use Twig templates instead of theme_vbo_export_content_csv(). See https://www.drupal.org/node/1831138 in Drupal\Core\Theme\Registry->processExtension() (line 513 of core/lib/Drupal/Core/Theme/Registry.php).

Steps to reproduce

E.g clear cache to see the warnings or run a deprecated code report.

Proposed resolution

Deprecation warnings should be resolved.

Remaining tasks

Provide patch.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

📌 Task
Status

Needs review

Version

4.0

Component

Code

Created by

🇧🇪Belgium BramDriesen Belgium 🇧🇪

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.

  • 🇦🇲Armenia Lilit_Ghazaryan

    Fixed the following deprecated warnings for Drupal 10 readiness.
    Checked by drush upgrade_status:analyze vbo_export on 4.x-dev version.

    FILE: web/modules/contrib/vbo_export/src/Plugin/Action/VboExportXlsx.php

    STATUS LINE MESSAGE
    --------------------------------------------------------------------------------
    Check manually 74 Call to deprecated method
    setCellValueExplicitByColumnAndRow() of class
    PhpOffice\PhpSpreadsheet\Worksheet\Worksheet: 1.23.0 Use the
    setCellValueExplicit() method with a cell address such as
    'C5' instead;, or passing in an array of [$columnIndex,
    $row] (e.g. [3, 5]), or a CellAddress object.
    --------------------------------------------------------------------------------
    Check manually 86 Call to deprecated method
    setCellValueExplicitByColumnAndRow() of class
    PhpOffice\PhpSpreadsheet\Worksheet\Worksheet: 1.23.0 Use the
    setCellValueExplicit() method with a cell address such as
    'C5' instead;, or passing in an array of [$columnIndex,
    $row] (e.g. [3, 5]), or a CellAddress object.

Production build 0.71.5 2024