CRM_Extension_Container_Basic - Add mechanism for filtering
authorTim Otten <totten@civicrm.org>
Sat, 1 Jun 2019 00:03:50 +0000 (17:03 -0700)
committerTim Otten <totten@civicrm.org>
Sat, 1 Jun 2019 00:11:10 +0000 (17:11 -0700)
commit7bded065dca98125930174c60ec2a7b10b0307c1
treef7732e1be04046561c1c38be72a47f2f7afc36a0
parent9e61e61a358369a95cc0b85ec414d6661639a1ba
CRM_Extension_Container_Basic - Add mechanism for filtering

This function allows one to filter down the list of extensions which are visible.

A few notes:

* The result of the scanning/filtering is stored in cache.  On a typical
  page-load, the system uses this cache -- which happily means that
  filtering shouldn't result in any extra page-load time.

* The extension-system is generally boot-critical.  I could imagine some
  scope-creep around making making the filter mechanism hookable, but that's
  a separate+complicated issue.  Optimistically...  if `array $containers`
  somehow becomes hookable, then one could use the same mechanism to
  manipulate the filters.
CRM/Extension/Container/Basic.php