Skip to content

Commit

Permalink
IBX-8534: Dropped deprecated context and getIndexData from Storage
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Oct 11, 2024
1 parent 1418e73 commit 75f65d1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/lib/FieldType/RichText/RichTextStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct(StorageGateway $gateway, LoggerInterface $logger = n
/**
* @see \Ibexa\Contracts\Core\FieldType\FieldStorage
*/
public function storeFieldData(VersionInfo $versionInfo, Field $field, array $context)
public function storeFieldData(VersionInfo $versionInfo, Field $field)
{
$document = new DOMDocument();
$document->loadXML($field->value->data);
Expand Down Expand Up @@ -133,7 +133,7 @@ public function storeFieldData(VersionInfo $versionInfo, Field $field, array $co
* @param \Ibexa\Contracts\Core\Persistence\Content\Field $field
* @param array $context
*/
public function getFieldData(VersionInfo $versionInfo, Field $field, array $context)
public function getFieldData(VersionInfo $versionInfo, Field $field)
{
$document = new DOMDocument();
$document->loadXML($field->value->data);
Expand Down Expand Up @@ -186,7 +186,7 @@ public function getFieldData(VersionInfo $versionInfo, Field $field, array $cont
$field->value->data = $document->saveXML();
}

public function deleteFieldData(VersionInfo $versionInfo, array $fieldIds, array $context)
public function deleteFieldData(VersionInfo $versionInfo, array $fieldIds)
{
foreach ($fieldIds as $fieldId) {
$this->gateway->unlinkUrl($fieldId, $versionInfo->versionNo);
Expand All @@ -202,8 +202,4 @@ public function hasFieldData()
{
return true;
}

public function getIndexData(VersionInfo $versionInfo, Field $field, array $context)
{
}
}

0 comments on commit 75f65d1

Please sign in to comment.