*/
public static function getEntityTitle() {
$className = static::class;
- Civi::log()->warning("$className needs to be regenerated. Missing getEntityTitle method.", ['civi.tag' => 'deprecated']);
+ CRM_Core_Error::deprecatedWarning("$className needs to be regenerated. Missing getEntityTitle method.");
return CRM_Core_DAO_AllCoreTables::getBriefName($className);
}
* @return array
* List of Angular modules, include all dependencies.
* Ex: array('crmMailing', 'crmUi', 'crmUtil', 'ngRoute').
+ * @throws \CRM_Core_Exception
*/
public function resolveDependencies($names) {
$allModules = $this->getModules();
foreach ($missingModules as $module) {
$visited[$module] = 1;
if (!isset($allModules[$module])) {
- \Civi::log()->warning('Unrecognized Angular module {name}. Please ensure that all Angular modules are declared.', [
- 'name' => $module,
- 'civi.tag' => 'deprecated',
- ]);
+ throw new \CRM_Core_Exception("Unrecognized Angular module {$module}. Please ensure that all Angular modules are declared.");
}
elseif (isset($allModules[$module]['requires'])) {
$result = array_unique(array_merge($result, $allModules[$module]['requires']));