Playing with info.yml drupal file
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.
- name: name of the module
- type: type module or theme
- core: whats the core, like 8.x or 9.x
- 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. - require: true
makes a module required and not uninstalled. - php: Version(5.x or 7.x)
minimum version of php required to run the module. - dependencies:
list of dependencies on which the module depends. - test_dependencies: list of module that are required to run the automated test before the automated test of our module is run
- configure: link to the configure form which may cotain the
- 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