Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaspar Rosin committed Jan 17, 2022
1 parent bbc0a67 commit 72c1a09
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.5.0] - 2021-01-10

### Changed

- `nova_get_settings` returns keys that are not defined [#96](https://github.com/optimistdigital/nova-settings/pull/96)
- Previously keys, that were not defined, were not returned.
- Key value will be `null` unless a default value is provided.

### Added

- `nova_get_settings` now accepts `[key => value]` array of defaults. [#96](https://github.com/optimistdigital/nova-settings/pull/96)

## [3.4.0] - 2021-01-10

### Changed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ Text::make('A text field')

### Helper functions

#### nova_get_settings(\$keys = null)
#### nova_get_settings(\$keys = null, \$defaults = [])

Call `nova_get_settings()` to get all the settings formated as a regular array. If you pass in `$keys` as an array, it will return only the keys listed.
Call `nova_get_settings()` to get all the settings formated as a regular array. Additionally, you can pass a `key => value` array as a second argument: `nova_get_settings(['some_key], ['some_key' => 'default_value'])`.

#### nova_get_setting(\$key, \$default = null)

Expand Down

0 comments on commit 72c1a09

Please sign in to comment.