Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 313996

Rename $module.info.yml into extension.yml

$
0
0

Follow-up to: #1793074: Convert .info files to YAML

Problem

Goal

  • Enforce one extension per directory by using a static .info file name.

Proposed solution

  1. Rename all $module.info.yml files into extension.yml

Examples

/core/modules/node/node.info.yml      » /core/modules/node/extension.yml
/core/modules/system/system.info.yml  » /core/modules/system/extension.yml

Notes

  • extension.yml is meant literally; i.e., "extension" is NOT to be replaced with the extension's name.
  • This inherently prevents two extensions to live in the same directory.
  • That's a critical aspect of D8's new architecture, but it is not enforced anywhere.
  • Therefore, an extension.yml (or perhaps even composer.yml?) file for each extension inherently enforces the architectural requirement that is not enforced in any way yet.
  • intuitive++

Viewing all articles
Browse latest Browse all 313996

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>