function yamlform_modules_installed in YAML Form 8
Implements hook_modules_installed().
File
- ./
yamlform.module, line 65 - Enables the creation of forms and questionnaires.
Code
function yamlform_modules_installed($modules) {
// Add form paths when the path.module is being installed.
if (in_array('path', $modules)) {
/** @var \Drupal\yamlform\YamlFormInterface[] $yamlforms */
$yamlforms = YamlForm::loadMultiple();
foreach ($yamlforms as $yamlform) {
$yamlform
->updatePaths();
}
}
// Check HTML email provider support as modules are installed.
/** @var \Drupal\yamlform\YamlFormEmailProviderInterface $email_provider */
$email_provider = \Drupal::service('yamlform.email_provider');
$email_provider
->check();
}