Upgrade to 3.1.0
This commit is contained in:
@@ -91,18 +91,6 @@ class StructureObject extends Model
|
||||
return $this->content = new Content($this->content, $this->parent());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a formatted date field from the content
|
||||
*
|
||||
* @param string $format
|
||||
* @param string $field
|
||||
* @return Field
|
||||
*/
|
||||
public function date(string $format = null, $field = 'date')
|
||||
{
|
||||
return $this->content()->get($field)->toDate($format);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the required id
|
||||
*
|
||||
|
Reference in New Issue
Block a user