Upgrade to 3.2.0
This commit is contained in:
@@ -21,8 +21,9 @@ use Kirby\Exception\InvalidArgumentException;
|
||||
*
|
||||
* @package Kirby Cms
|
||||
* @author Bastian Allgeier <bastian@getkirby.com>
|
||||
* @link http://getkirby.com
|
||||
* @copyright Bastian Allgeier
|
||||
* @link https://getkirby.com
|
||||
* @copyright Bastian Allgeier GmbH
|
||||
* @license https://getkirby.com/license
|
||||
*/
|
||||
class Field
|
||||
{
|
||||
@@ -53,7 +54,7 @@ class Field
|
||||
* This will be the page, site, user or file
|
||||
* to which the content belongs
|
||||
*
|
||||
* @var Site|Page|File|User
|
||||
* @var Model
|
||||
*/
|
||||
protected $parent;
|
||||
|
||||
@@ -169,7 +170,7 @@ class Field
|
||||
|
||||
/**
|
||||
* @see Field::parent()
|
||||
* @return Page|File|Site|User
|
||||
* @return Kirby\Cms\Model|null
|
||||
*/
|
||||
public function model()
|
||||
{
|
||||
@@ -200,7 +201,7 @@ class Field
|
||||
/**
|
||||
* Returns the parent object of the field
|
||||
*
|
||||
* @return Page|File|Site|User
|
||||
* @return Kirby\Cms\Model|null
|
||||
*/
|
||||
public function parent()
|
||||
{
|
||||
@@ -228,12 +229,12 @@ class Field
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the field content
|
||||
* Returns the field content. If a new value is passed,
|
||||
* the modified field will be returned. Otherwise it
|
||||
* will return the field value.
|
||||
*
|
||||
* @param string|Closure $value
|
||||
* @return mixed If a new value is passed, the modified
|
||||
* field will be returned. Otherwise it
|
||||
* will return the field value.
|
||||
* @return mixed
|
||||
*/
|
||||
public function value($value = null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user