mirror of
https://github.com/getgrav/grav.git
synced 2026-03-18 02:21:11 +01:00
Added a copy method to Medium object
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# v1.3.9
|
||||
## xx/xx/2017
|
||||
|
||||
1. [](#improved)
|
||||
* Added `Medium::copy()` method to create a copy of a medium object
|
||||
|
||||
# v1.3.8
|
||||
## 10/26/2017
|
||||
|
||||
|
||||
@@ -72,6 +72,16 @@ class Medium extends Data implements RenderableInterface
|
||||
$this->reset();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a copy of this media object
|
||||
*
|
||||
* @return Medium
|
||||
*/
|
||||
public function copy()
|
||||
{
|
||||
return clone($this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return just metadata from the Medium object
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user