Problem/Motivation

Followup from #2959989-20: Deprecate Extension::__call() magic
@andypost:

+++ b/core/lib/Drupal/Core/Extension/ExtensionList.php
@@ -555,7 +555,7 @@ protected function createExtensionInfo(Extension $extension) {
+ $info['mtime'] = $extension->getFileInfo()->getMTime();

we can deprecate this key as it is not parsed see \Drupal\Core\Utility\ProjectInfo::filterProjectInfo() and used only by tests

+++ b/core/lib/Drupal/Core/Utility/ProjectInfo.php
@@ -81,7 +81,7 @@ public function processInfoList(array &$projects, array $list, $project_type, $s
+ $file->info['_info_file_ctime'] = $file->getFileInfo()->getCTime();

consumed only by locale and update modules

and only a handful usages in contrib.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Deprecate $extensionInfo['mtime'] and ['_info_file_ctime'] are deprecated.
Use the $extension object and its methods instead.

Issue fork drupal-3322609

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

geek-merlin created an issue. See original summary.

spokje’s picture

Assigned: Unassigned » spokje

spokje’s picture

Assigned: spokje » Unassigned
Status: Active » Needs work

Needs work for the $extensionInfo['_info_file_ctime'] deprecation

spokje’s picture

Rebased after GitLab indicated manual rebasing was needed.

spokje’s picture

Assigned: Unassigned » spokje

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

spokje’s picture

Assigned: spokje » Unassigned

nicxvan changed the visibility of the branch 3322609-deprecate-extensioninfomtime-and to hidden.

nicxvan’s picture

The change record and deprecating also need an update.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.