You are here

class TestSampleDataEnvironment in Module Builder 8.3

Hierarchy

  • class \Drupal\test_dummy_module_write_location\TestSampleDataEnvironment extends \DrupalCodeBuilder\Environment\DrupalLibrary

Expanded class hierarchy of TestSampleDataEnvironment

File

tests/modules/test_dummy_module_write_location/src/TestSampleDataEnvironment.php, line 7

Namespace

Drupal\test_dummy_module_write_location
View source
class TestSampleDataEnvironment extends DrupalLibrary {

  /**
   * The short class name of the storage helper to use.
   */
  protected $storageType = 'TestExportInclude';

  /**
   * Set the hooks directory.
   */
  function getHooksDirectorySetting() {

    // TODO: find a way to get the actual package location from Composer.
    $directory = '../vendor/drupal-code-builder/drupal-code-builder/Test/sample_hook_definitions/' . $this
      ->getCoreMajorVersion();
    $this->hooks_directory = $directory;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TestSampleDataEnvironment::$storageType protected property The short class name of the storage helper to use.
TestSampleDataEnvironment::getHooksDirectorySetting function Set the hooks directory.