/**
* Maintain a set of markup/templates to inject inside various regions
*/
-class CRM_Core_Region {
+class CRM_Core_Region implements CRM_Core_Resources_CollectionInterface, CRM_Core_Resources_CollectionAdderInterface {
/**
* Obtain the content for a given region.
return Civi::$statics[__CLASS__][$name];
}
- use CRM_Core_Resources_CollectionTrait {
- CRM_Core_Resources_CollectionTrait::add as _add;
- }
+ use CRM_Core_Resources_CollectionTrait;
/**
* Symbolic name of this region
$this->snippets['default']['markup'] = $default;
}
+ Civi::dispatcher()->dispatch('civi.region.render', \Civi\Core\Event\GenericHookEvent::create(['region' => $this]));
+
$this->sort();
$cms = CRM_Core_Config::singleton()->userSystem;