I'm trying to debug a Drupal/CiviCRM integration issue where js/css resources that are added in an extension are not getting output. I think it should get output as part of a form snippet that's getting loaded via ajax, and I can see that the code here: https://github.com/civicrm/civicrm-core/blob/master/CRM/Core/Resources.php manages the code interface that allows extensions to add in their css and js, but I can't figure out at what point all the added js/css gets output. And I care because for the code I'm working with (webform civicrm), it isn't getting output.
Presumably there's some core code somewhere that grabs the structured data via something like:
$resource = CRM_Core_Resources::singleton()
And then converts the $resource object into html for output?
In the case I care about I want my css/js added to the end of a form that's being loaded via ajax, and the code seems to support this via the isAjaxMode method.