You are here

protected function YamlFormThirdPartySettingsManager::loadIncludes in YAML Form 8

Load all third party settings includes.

See also

{module}/{module}.yamlform.inc

{module}/yamlform/{module}.yamlform.inc

yamlform/yamlform.{module}.inc

1 call to YamlFormThirdPartySettingsManager::loadIncludes()
YamlFormThirdPartySettingsManager::__construct in src/YamlFormThirdPartySettingsManager.php
Constructs a new YamlFormThirdPartySettingsManager.

File

src/YamlFormThirdPartySettingsManager.php, line 83

Class

YamlFormThirdPartySettingsManager
Form third party settings manager.

Namespace

Drupal\yamlform

Code

protected function loadIncludes() {
  $modules = array_keys($this->moduleHandler
    ->getModuleList());
  foreach ($modules as $module) {
    $this->moduleHandler
      ->loadInclude($module, 'yamlform.inc');
    $this->moduleHandler
      ->loadInclude($module, 'yamlform.inc', "yamlform/{$module}");
    $this->moduleHandler
      ->loadInclude('yamlform', "inc", "third_party_settings/yamlform.{$module}");
  }
}