Remove "core: 8.x" from the .info.yml file

Created on 20 June 2023, over 1 year ago
Updated 20 July 2023, over 1 year ago

Adding both core and core_version_requirement with anything other than core_version_requirement: ^8 || ^9 will result in an exception.

For example, a module/theme that is compatible with Drupal 8 versions after Drupal 8.8.0 and also Drupal 9 will need to use the following line in its .info.yml file, without a line containing core.

core_version_requirement: ^8.8 || ^9

In the rare occasions the module/theme is also compatible with Drupal 10, its .info.yml file should use the following line.

core_version_requirement: ^8.8 || ^9 || ^10
📌 Task
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

🇮🇳India Harshita mehra

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Harshita mehra
  • Status changed to RTBC over 1 year ago
  • 🇮🇳India Harshita mehra

    Hello Maintainers,
    According to https://www.drupal.org/node/3070687 this key could be removed for ^8.8 as 8.7.7 is where new key introduced.

    So, I have provided a patch for this issue.
    Please review.

    Thanks!

  • Status changed to Closed: works as designed over 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
    -core: 8.x
     core_version_requirement: ^8 || ^9
     regions:
       header: Header

    Modules, themes. and profiles are allowed to use the following lines in their .info.yml file.

    core: 8.x
    core_version_requirement: ^8 || ^9
    

    That is described in New 'core_version_requirement' key in info.yml files for modules, themes and profiles allows Composer semantic version constraints including specifying multiple major versions of core, which states:

    For example a module that is compatible with Drupal 8 and Drupal 9 can have a info.yml file like this

    name: My Module
    type: module
    core: 8.x
    core_version_requirement: ^8 || ^9
    

    There is no change that must be done in that .info.yml file.

Production build 0.71.5 2024