Skip to content

Commit

Permalink
Output the multipleOptions assossiative array as json
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelAlphonso committed Feb 3, 2017
1 parent 4f5d01d commit 16dd28e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Charcoal/Property/AbstractProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,16 @@ public function multipleOptions($key = null)
return $this->multipleOptions;
}

/**
* Output the property multiple options as json.
*
* @return string
*/
public function multipleOptionsAsJson()
{
return json_encode($this->multipleOptions());
}

/**
* Retrieve the default settings for a multi-value property.
*
Expand Down

0 comments on commit 16dd28e

Please sign in to comment.