Skip to content

Commit

Permalink
Merge pull request #21412 from eileenmcnaughton/protected
Browse files Browse the repository at this point in the history
dev/core#2823 update function visibility to protected
  • Loading branch information
colemanw authored Sep 9, 2021
2 parents 8b7bcfc + d80c663 commit f634283
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CRM/Core/ManagedEntities.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public function reconcileUnknownModules() {
* @param array $todo
* Entity specification (per hook_civicrm_managedEntities).
*/
public function insertNewEntity($todo) {
protected function insertNewEntity($todo) {
$result = civicrm_api($todo['entity'], 'create', $todo['params']);
if (!empty($result['is_error'])) {
$this->onApiError($todo['entity'], 'create', $todo['params'], $result);
Expand Down Expand Up @@ -307,7 +307,7 @@ public function updateExistingEntity($dao, $todo) {
*
* @throws \CiviCRM_API3_Exception
*/
public function disableEntity($dao): void {
protected function disableEntity($dao): void {
$entity_type = $dao->entity_type;
if ($this->isActivationSupported($entity_type)) {
// FIXME cascading for payproc types?
Expand All @@ -329,7 +329,7 @@ public function disableEntity($dao): void {
* @param CRM_Core_DAO_Managed $dao
* @throws Exception
*/
public function removeStaleEntity($dao) {
protected function removeStaleEntity($dao) {
$policy = empty($dao->cleanup) ? 'always' : $dao->cleanup;
switch ($policy) {
case 'always':
Expand Down Expand Up @@ -384,7 +384,7 @@ public function removeStaleEntity($dao) {
*
* @return array|null
*/
public function getDeclarations() {
protected function getDeclarations() {
if ($this->declarations === NULL) {
$this->declarations = [];
foreach (CRM_Core_Component::getEnabledComponents() as $component) {
Expand Down

0 comments on commit f634283

Please sign in to comment.