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

Created on 21 June 2023, over 1 year ago
Updated 20 July 2023, about 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

3.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,
    I have provided a patch to fix this issue.
    To get more information visit https://www.drupal.org/node/3070687
    Please review it.

    Thanks!

  • Status changed to Closed: works as designed about 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
    -core: 8.x
    -description: Integrates Unomi with Drupal 8.
    +description: Integrates Unomi with Drupal 8 or 9.
     package: Personalisation
     type: module
     core_version_requirement: ^8 || ^9

    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