projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #22555 from eileenmcnaughton/stricter
[civicrm-core.git]
/
CRM
/
Core
/
Region.php
diff --git
a/CRM/Core/Region.php
b/CRM/Core/Region.php
index 7a31455005ff1734f4b5c0973ea891ccc47af6c7..4d9f733068c67003c28ad68cd6345be2b37c3d3e 100644
(file)
--- a/
CRM/Core/Region.php
+++ b/
CRM/Core/Region.php
@@
-3,7
+3,7
@@
/**
* Maintain a set of markup/templates to inject inside various regions
*/
/**
* 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.
/**
* Obtain the content for a given region.
@@
-20,9
+20,7
@@
class CRM_Core_Region {
return Civi::$statics[__CLASS__][$name];
}
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
/**
* Symbolic name of this region
@@
-63,6
+61,8
@@
class CRM_Core_Region {
$this->snippets['default']['markup'] = $default;
}
$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;
$this->sort();
$cms = CRM_Core_Config::singleton()->userSystem;