private function YamlDefinitionsLoader::setUpFactoriesMapper in Hook Event Dispatcher 8
Set up Factories Mapper.
1 call to YamlDefinitionsLoader::setUpFactoriesMapper()
- YamlDefinitionsLoader::__construct in tests/
src/ Unit/ Preprocess/ Helpers/ YamlDefinitionsLoader.php - YamlDefinitionsLoader constructor.
File
- tests/
src/ Unit/ Preprocess/ Helpers/ YamlDefinitionsLoader.php, line 72
Class
- YamlDefinitionsLoader
- Class YamlDefinitionsLoader.
Namespace
Drupal\Tests\hook_event_dispatcher\Unit\Preprocess\HelpersCode
private function setUpFactoriesMapper() {
$this->mapper = new PreprocessEventFactoryMapper();
foreach ($this->factories as $entry) {
$factory = new $entry['class']();
$this->mapper
->addFactory($factory);
}
}