Skip to content

Commit

Permalink
fix: added missing internal callable for ConfigHistoryRevision
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhendrickson13 committed May 6, 2024
1 parent 6a8afcc commit 8733bcc
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ class ConfigHistoryRevision extends Model {
parent::__construct($id, $parent_id, $data, ...$options);
}

/**
* Obtains the configuration history as an array. This method is the internal callable for this Model.
* @return array The configuration history as an array of objects.
*/
protected function get_config_history(): array {
$config_history = get_backups();
unset($config_history['versions']);
return $config_history;
}

/**
* Deletes a configuration history entry.
*/
Expand Down

0 comments on commit 8733bcc

Please sign in to comment.