public static function YamlDefinitionsLoader::getInstance in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/preprocess_event_dispatcher/tests/src/Unit/Helpers/YamlDefinitionsLoader.php \Drupal\Tests\preprocess_event_dispatcher\Unit\Helpers\YamlDefinitionsLoader::getInstance()
Singleton get instance function.
Only need to load the files once from the filesystem.
Return value
\Drupal\Tests\preprocess_event_dispatcher\Unit\Helpers\YamlDefinitionsLoader Existing or new YamlDefinitionsLoader instance.
2 calls to YamlDefinitionsLoader::getInstance()
- EntityEventTest::setUp in modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ EntityEventTest.php - OtherEventTest::setUp in modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ OtherEventTest.php
File
- modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ Helpers/ YamlDefinitionsLoader.php, line 84
Class
- YamlDefinitionsLoader
- Class YamlDefinitionsLoader.
Namespace
Drupal\Tests\preprocess_event_dispatcher\Unit\HelpersCode
public static function getInstance() : YamlDefinitionsLoader {
if (static::$instance === NULL) {
static::$instance = new static();
}
return static::$instance;
}