GravityKit\GravityMigrate\Importers\Adapters\AbstractSourceAdapter
Provides shared adapter helpers and importer access.
Since: %ver%
Source: src/Importers/Adapters/AbstractSourceAdapter.php:36
Details
-
Kind:
class -
Namespace:
GravityKit\GravityMigrate\Importers\Adapters -
Implements:
SourceAdapterInterface
Properties
| Property | Type | Description |
|---|---|---|
$importer | PipelineContext | Importer context. |
$layout_group_index | int | How many layout groups this adapter has minted. |
$merge_tag_messages | string[] | What this import took out of somebody's wording, in the words the operator reads. |
Methods
| Method | Description |
|---|---|
take_untranslatable_tag_warnings() | The losses nobody has reported yet, handed over and forgotten. |
__construct() | Constructor. |
Method Reference
take_untranslatable_tag_warnings()
public function take_untranslatable_tag_warnings(): array
The losses nobody has reported yet, handed over and forgotten.
Read by the importer as it finishes a payload, so a loss an adapter recorded and never mentioned still reaches the migration report. Clearing on the way out is what stops the same sentence being said twice when the payload is finished more than once.
Returns
string[]
Since: %ver%
Source: src/Importers/Adapters/AbstractSourceAdapter.php:200
__construct()
public function __construct( PipelineContext $importer )
Constructor.
Takes the migration's context rather than an importer specifically, because the Gravity Forms source adapter runs on the export side, where there is no importer to hand it.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$importer | PipelineContext | The migration this conversion is part of. |
Since: %ver%
Source: src/Importers/Adapters/AbstractSourceAdapter.php:823