'filters' => [],
'links' => [],
];
- $enabledComponents = Civi::settings()->get('enable_components');
foreach (CRM_Core_DAO_AllCoreTables::daoToClass() as $entity => $daoName) {
// Skip DAOs of disabled components
- if (defined("$daoName::COMPONENT") && !in_array($daoName::COMPONENT, $enabledComponents, TRUE)) {
+ if (defined("$daoName::COMPONENT") && !CRM_Core_Component::isEnabled($daoName::COMPONENT)) {
continue;
}
$baoName = str_replace('_DAO_', '_BAO_', $daoName);
}
/**
- * @param string|NULL $region
+ * @param string|null $region
* Optional request for a specific region. If NULL/omitted, use global default.
* @return \CRM_Core_Region
*/