hook_angularModules - Accept 'partialsCallback' for dynamic partials
authorTim Otten <totten@civicrm.org>
Thu, 12 Dec 2019 23:33:07 +0000 (15:33 -0800)
committerTim Otten <totten@civicrm.org>
Thu, 12 Dec 2019 23:33:07 +0000 (15:33 -0800)
commit90c62ad31e77e23a652cdd98736e0d5a8e09bad2
treef4e0919a00e7722d1bb341355422d4e2ad3afb6a
parent89c7a9d39e6de7a73b22d24b5d3d6842f5209dc9
hook_angularModules - Accept 'partialsCallback' for dynamic partials

This is similar to the antecedent commit which used a field 'snippets' that
contained a list of HTML files and their content. However, this
uses a callback function instead of providing the full HTML content.

This makes it safer to work with the Angular metadata without needing to
load the content of all partials into memory.
CRM/Utils/Hook.php
Civi/Angular/Manager.php