ReferenceAwareExternalStorage
ReferenceAwareExternalStorage.php
:
18
Interface
Interface for external storages that support creating lightweight references to another version's data instead of copying it.
Constants¶
REFERENCE_LANGUAGE_CODE ¶
ReferenceAwareExternalStorage.php
:
20
|
|
|
Methods¶
referenceLegacyField()
¶
ReferenceAwareExternalStorage.php
:
30
Creates a reference to the original field's external data instead of copying it.
|
|
|
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