-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Given a content with id N with a draft number 2 that I can edit When I go to /content/edit/N/2 Then I see a content edit form When I click on the publish button Then the draft is published
- Loading branch information
Bertrand Dunogier
committed
Feb 23, 2017
1 parent
3ab2ce0
commit a6506e2
Showing
4 changed files
with
84 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
/** | ||
* This file is part of the eZ RepositoryForms package. | ||
* | ||
* @copyright Copyright (C) eZ Systems AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
* @version //autogentag// | ||
*/ | ||
namespace EzSystems\RepositoryForms\Data\Content; | ||
|
||
use eZ\Publish\Core\Repository\Values\Content\ContentUpdateStruct; | ||
use EzSystems\RepositoryForms\Data\NewnessCheckable; | ||
|
||
/** | ||
* @property-read \EzSystems\RepositoryForms\Data\Content\FieldData[] $fieldsData | ||
* @property-read \eZ\Publish\API\Repository\Values\Content\Content[] $contentDraft | ||
*/ | ||
class ContentUpdateData extends ContentUpdateStruct implements NewnessCheckable | ||
{ | ||
use ContentData; | ||
|
||
protected $contentDraft; | ||
|
||
public function isNew() | ||
{ | ||
return false; | ||
} | ||
} |
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