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

drupal_parse_info_file still tells developers to use variable_set and variable_get

$
0
0

The documentation for drupal_parse_info_file tells developers to use variable_set and variable_get to create module settings.

Info files are NOT for placing arbitrary theme and module-specific settings. Use variable_get() and variable_set() for that. Info files are formatted as YAML. If the 'version' key is set to 'VERSION' in any info file, then the value will be substituted with the current version of Drupal core.

It should instead refer them to the Config class methods.

Info files are NOT for placing arbitrary theme and module-specific settings.
Use the Config::get() and Config::set()->save() for that. Info files are
formatted as YAML. If the 'version' key is set to 'VERSION' in any info file,
then the value will be substituted with the current version of Drupal core.


Viewing all articles
Browse latest Browse all 291765

Trending Articles



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