Copied!

ReferenceAwareExternalStorage

ReferenceAwareExternalStorage.php : 18
Interface

Interface for external storages that support creating lightweight references to another version's data instead of copying it.

Constants

publicREFERENCE_LANGUAGE_CODE

ReferenceAwareExternalStorage.php : 20
public mixed REFERENCE_LANGUAGE_CODE = 'reference-language-code'

Methods

publicreferenceLegacyField()

ReferenceAwareExternalStorage.php : 30

Creates a reference to the original field's external data instead of copying it.

public referenceLegacyField(VersionInfo $versionInfo, Field $field, Field $originalField) : bool|null

Called for fields in languages not being edited during draft creation. The implementation should store a lightweight pointer to $originalField's external data (identified by $originalField->versionNo) and resolve it in FieldStorage::getFieldData().

Parameters

Name Type Default value Description
$versionInfo VersionInfo - -
$field Field - -
$originalField Field - -

Return values

bool|null