-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: interface DefaultDataFieldStorage
- Loading branch information
1 parent
70d1af8
commit 189e046
Showing
2 changed files
with
80 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (C) Ibexa AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Ibexa\Contracts\FieldType; | ||
|
||
use eZ\Publish\SPI\Persistence\Content\Field; | ||
use eZ\Publish\SPI\Persistence\Content\VersionInfo; | ||
|
||
interface DefaultDataFieldStorage | ||
{ | ||
/** | ||
* Populates $field value property with default data based on the external data. | ||
* $field->value is a {@link \eZ\Publish\SPI\Persistence\Content\FieldValue} object. | ||
* This value holds the data as a {@link \eZ\Publish\Core\FieldType\Value} based object, according to | ||
* the field type (e.g. for TextLine, it will be a {@link \eZ\Publish\Core\FieldType\TextLine\Value} object). | ||
* | ||
* @param \eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo | ||
* @param \eZ\Publish\SPI\Persistence\Content\Field $field | ||
*/ | ||
public function getDefaultFieldData(VersionInfo $versionInfo, Field $field): void; | ||
} |
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