You are here

public function ModuleFileWriterDummyLocation::getRelativeModuleFolder in Module Builder 8.3

Put modules in the site folder, as that gets cleaned up.

Overrides ModuleFileWriter::getRelativeModuleFolder

File

tests/modules/test_dummy_module_write_location/src/ModuleFileWriterDummyLocation.php, line 18

Class

ModuleFileWriterDummyLocation
Test file writer which puts module files in the test site folder.

Namespace

Drupal\test_dummy_module_write_location

Code

public function getRelativeModuleFolder($module_name) {
  $site_path = \Drupal::service('site.path');
  return $site_path . '/' . $module_name;
}