}
}
if (!$this->_actionsToGet || count($this->_actionsToGet) > count($this->_actions)) {
- // Search entity-specific actions (including those provided by extensions)
+ // Search for entity-specific actions in extensions
foreach (\CRM_Extension_System::singleton()->getMapper()->getActiveModuleFiles() as $ext) {
$dir = \CRM_Utils_File::addTrailingSlash(dirname($ext['filePath']));
$this->scanDir($dir . 'Civi/Api4/Action/' . $this->_entityName);
}
+ // Search for entity-specific actions in core
+ $this->scanDir(\CRM_Utils_File::addTrailingSlash(__DIR__) . $this->_entityName);
}
ksort($this->_actions);
return $this->_actions;