Copied!

GatewayBasedStorage

GatewayBasedStorage.php : 17
Implements FieldStorage

Field Type External Storage gateway base class.

Properties

protected $gateway

GatewayBasedStorage.php : 25

Field Type External Storage Gateway.

protected StorageGatewayInterface $gateway

Methods

public__construct()

GatewayBasedStorage.php : 31
public __construct(StorageGatewayInterface $gateway)

Parameters

Name Type Default value Description
$gateway StorageGatewayInterface - -

publiccopyLegacyField()

GatewayBasedStorage.php : 50

This method is used exclusively by Legacy Storage to copy external data of existing field in main language to the untranslatable field not passed in create or update struct, but created implicitly in storage layer.

public copyLegacyField(VersionInfo $versionInfo, Field $field, Field $originalField, array<string|int, mixed> $context) : bool|null

By default the method falls back to the FieldStorage::storeFieldData(). External storages implement this method as needed.

Parameters

Name Type Default value Description
$versionInfo VersionInfo - -
$field Field - -
$originalField Field - -
$context array<string|int, mixed> - -

Return values

bool|null

Same as FieldStorage::storeFieldData().