DrupalCodeBuilderDevel.php in Module Builder 8.3
Namespace
Drupal\module_builder_develFile
module_builder_devel/src/DrupalCodeBuilderDevel.phpView source
<?php
namespace Drupal\module_builder_devel;
use Drupal\module_builder\DrupalCodeBuilder;
use Drupal\module_builder_devel\Environment\ModuleBuilderDevel;
/**
* Replacement library wrapper service, to switch the environment.
*
* The replacement environment switches the storage so that analysis data is
* human-readable.
*/
class DrupalCodeBuilderDevel extends DrupalCodeBuilder {
/**
* {@inheritdoc}
*/
protected function doLoadLibrary() {
$environment = new ModuleBuilderDevel();
\DrupalCodeBuilder\Factory::setEnvironment($environment)
->setCoreVersionNumber(\Drupal::VERSION);
}
}
Classes
Name | Description |
---|---|
DrupalCodeBuilderDevel | Replacement library wrapper service, to switch the environment. |