Skip to content

Commit

Permalink
Add setting_array helper
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdekruijk authored Mar 10, 2022
1 parent 63d7899 commit 2079ed1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,15 @@ function setting($key, $default = null, $keySeperator = false)
}
}
}

if (!function_exists('setting_array')) {
/**
* Get a Setting array from cache or database
*
* @return array
*/
function setting_array($key, $default = null, $keySeperator = ':')
{
return NickDeKruijk\Settings\Setting::get($key, $default, $keySeperator);
}
}

0 comments on commit 2079ed1

Please sign in to comment.