function realistic_dummy_content_api_version in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/realistic_dummy_content_api.module \realistic_dummy_content_api_version()
- 7.2 api/realistic_dummy_content_api.module \realistic_dummy_content_api_version()
Returns the current framework.
Return value
string Drupal7 or Drupal8.
1 call to realistic_dummy_content_api_version()
- Framework::implementor in api/
src/ Framework/ Framework.php - Retrieves a framework-specific implementor.
File
- api/
realistic_dummy_content_api.module, line 72 - API code allowing other modules to generate realistic dummy content.
Code
function realistic_dummy_content_api_version() {
if (defined('VERSION')) {
return 'Drupal7';
}
return 'Drupal8';
}