Skip to content

Commit

Permalink
Enhance FieldType\FieldType phpdoc: Fix code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
adriendupuis committed Dec 17, 2024
1 parent ad70f77 commit bfd1697
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions src/contracts/FieldType/FieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,20 @@ abstract public function getSettingsSchema();
* It is considered best practice to return a hash map, which contains
* rudimentary settings structures, like e.g. for the "ezstring" FieldType
*
* <code>
* array(
* 'stringLength' => array(
* 'minStringLength' => array(
* 'type' => 'int',
* 'default' => 0,
* ),
* 'maxStringLength' => array(
* 'type' => 'int'
* 'default' => null,
* )
* ),
* );
* </code>
* ```
* [
* 'stringLength' => [
* 'minStringLength' => [
* 'type' => 'int',
* 'default' => 0,
* ],
* 'maxStringLength' => [
* 'type' => 'int'
* 'default' => null,
* ],
* ],
* ];
* ```
*
* @return mixed
*/
Expand Down Expand Up @@ -360,22 +360,22 @@ abstract public function fromPersistenceValue(FieldValue $fieldValue);
*
* @param \Ibexa\Contracts\Core\FieldType\Value $value
*
* @return array Hash with relation type as key and array of destination content ids as value.
* @return array Hash with relation type as key and array of destination content IDs as value.
*
* Example:
* <code>
* array(
* \Ibexa\Contracts\Core\Repository\Values\Content\Relation::LINK => array(
* "contentIds" => array( 12, 13, 14 ),
* "locationIds" => array( 24 )
* ),
* \Ibexa\Contracts\Core\Repository\Values\Content\Relation::EMBED => array(
* "contentIds" => array( 12 ),
* "locationIds" => array( 24, 45 )
* ),
* \Ibexa\Contracts\Core\Repository\Values\Content\Relation::FIELD => array( 12 )
* )
* </code>
* ```
* [
* \Ibexa\Contracts\Core\Repository\Values\Content\Relation::LINK => [
* 'contentIds' => [12, 13, 14],
* 'locationIds' => [24]
* ],
* \Ibexa\Contracts\Core\Repository\Values\Content\Relation::EMBED => [
* 'contentIds" => [12],
* 'locationIds' => [24, 45]
* ],
* \Ibexa\Contracts\Core\Repository\Values\Content\Relation::FIELD => [12]
* ]
* ```
*/
abstract public function getRelations(Value $value);
}
Expand Down

0 comments on commit bfd1697

Please sign in to comment.