Playing with info.yml drupal file

nitish guleria
1 min readJul 29, 2021

Recent researching and reading through the documentation of how to create a module on drupal.org, I found that there are few hidden properties that I overlooked. These were basically to define the version of php, is the module or theme required or not.

  1. name: name of the module
  2. type: type module or theme
  3. core: whats the core, like 8.x or 9.x
  4. hidden : true
    This property hides the module from the extend (module list) page.
    We can make these modules visible by adding $settings['extension_discovery_scan_tests'] = TRUE to your settings.php file. Helpful when we want to do something behind the scenes with our module.
  5. require: true
    makes a module required and not uninstalled.
  6. php: Version(5.x or 7.x)
    minimum version of php required to run the module.
  7. dependencies:
    list of dependencies on which the module depends.
  8. test_dependencies: list of module that are required to run the automated test before the automated test of our module is run
  9. configure: link to the configure form which may cotain the
  10. package: we can group the same type of modules using this property

core_version_requirement:
This property was required for version after drupal 8.7.7

This property tells the system that module/theme/profile is compatible with major versions of drupal

--

--