You are here

class DrupalCodeBuilderTestSamples in Module Builder 8.3

Alternative library wrapper service, to use the test samples environment.

Hierarchy

Expanded class hierarchy of DrupalCodeBuilderTestSamples

1 string reference to 'DrupalCodeBuilderTestSamples'
module_builder_devel.services.yml in module_builder_devel/module_builder_devel.services.yml
module_builder_devel/module_builder_devel.services.yml
1 service uses DrupalCodeBuilderTestSamples
module_builder_devel.drupal_code_builder.test_samples in module_builder_devel/module_builder_devel.services.yml
Drupal\module_builder_devel\DrupalCodeBuilderTestSamples

File

module_builder_devel/src/DrupalCodeBuilderTestSamples.php, line 10

Namespace

Drupal\module_builder_devel
View source
class DrupalCodeBuilderTestSamples extends DrupalCodeBuilder {

  /**
   * {@inheritdoc}
   */
  protected function doLoadLibrary() {
    \DrupalCodeBuilder\Factory::setEnvironmentLocalClass('WriteTestsSampleLocation')
      ->setCoreVersionNumber(\Drupal::VERSION);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DrupalCodeBuilder::$loaded protected property Whether the library has been initialized.
DrupalCodeBuilder::getTask public function Gets a task handler from the library.
DrupalCodeBuilder::loadLibrary public function Loads the Drupal Coder Builder library and sets the environment.
DrupalCodeBuilderTestSamples::doLoadLibrary protected function Helper for loadLibrary() for ease of overriding. Overrides DrupalCodeBuilder::doLoadLibrary