You are here

protected function DrupalCodeBuilderDevel::doLoadLibrary in Module Builder 8.3

Helper for loadLibrary() for ease of overriding.

Overrides DrupalCodeBuilder::doLoadLibrary

File

module_builder_devel/src/DrupalCodeBuilderDevel.php, line 19

Class

DrupalCodeBuilderDevel
Replacement library wrapper service, to switch the environment.

Namespace

Drupal\module_builder_devel

Code

protected function doLoadLibrary() {
  $environment = new ModuleBuilderDevel();
  \DrupalCodeBuilder\Factory::setEnvironment($environment)
    ->setCoreVersionNumber(\Drupal::VERSION);
}