-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement asset creation changes, the item post and update post metho…
…ds will return the created assets list
- Loading branch information
Roland Kovacsics
committed
Jul 17, 2020
1 parent
2ca1938
commit 321c943
Showing
6 changed files
with
91 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace Cheppers\GatherContent\DataTypes; | ||
|
||
class Meta extends Base | ||
{ | ||
/** | ||
* @var array | ||
*/ | ||
public $assets = []; | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected $unusedProperties = ['id']; | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function initPropertyMapping() | ||
{ | ||
parent::initPropertyMapping(); | ||
$this->propertyMapping = array_replace( | ||
$this->propertyMapping, | ||
[ | ||
'assets' => 'assets', | ||
] | ||
); | ||
|
||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters