protected function DrupalCodeBuilder::doLoadLibrary in Module Builder 8.3
Helper for loadLibrary() for ease of overriding.
1 call to DrupalCodeBuilder::doLoadLibrary()
- DrupalCodeBuilder::loadLibrary in src/
DrupalCodeBuilder.php - Loads the Drupal Coder Builder library and sets the environment.
4 methods override DrupalCodeBuilder::doLoadLibrary()
- DrupalCodeBuilderDevel::doLoadLibrary in module_builder_devel/
src/ DrupalCodeBuilderDevel.php - Helper for loadLibrary() for ease of overriding.
- DrupalCodeBuilderTestSampleData::doLoadLibrary in tests/
modules/ test_dummy_module_write_location/ src/ DrupalCodeBuilderTestSampleData.php - Helper for loadLibrary() for ease of overriding.
- DrupalCodeBuilderTestSamples::doLoadLibrary in module_builder_devel/
src/ DrupalCodeBuilderTestSamples.php - Helper for loadLibrary() for ease of overriding.
- TestDrupalCodeBuilder::doLoadLibrary in tests/
modules/ module_builder_test_component_type/ src/ TestDrupalCodeBuilder.php - Helper for loadLibrary() for ease of overriding.
File
- src/
DrupalCodeBuilder.php, line 57
Class
- DrupalCodeBuilder
- Service class that wraps around the DCB library, to make it injectable.
Namespace
Drupal\module_builderCode
protected function doLoadLibrary() {
// TODO: add an environment class with a more appropriate name.
\DrupalCodeBuilder\Factory::setEnvironmentLocalClass('DrupalLibrary')
->setCoreVersionNumber(\Drupal::VERSION);
}