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