Skip to content

Commit

Permalink
Angular - Backport status check from civicrm#27798
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Oct 13, 2023
1 parent 5231fe6 commit e6fe77f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions CRM/Utils/Check/Component/Env.php
Original file line number Diff line number Diff line change
Expand Up @@ -1106,4 +1106,25 @@ public function checkPHPIntlExists() {
return $messages;
}

public function checkAngularModuleSettings() {
$messages = [];
$modules = Civi::container()->get('angular')->getModules();
foreach ($modules as $name => $module) {
if (!empty($module['settings'])) {
$messages[] = new CRM_Utils_Check_Message(
__FUNCTION__ . $name,
ts('The Angular file "%1" from extension "%2" must be updated to use "settingsFactory" instead of "settings". <a %3>Developer info...</a>', [
1 => $name,
2 => $module['ext'],
3 => 'target="_blank" href="https://github.com/civicrm/civicrm-core/pull/19052"',
]),
ts('Unsupported Angular Setting'),
\Psr\Log\LogLevel::WARNING,
'fa-code'
);
}
}
return $messages;
}

}

0 comments on commit e6fe77f

Please sign in to comment.