Skip to main content

GravityKit\GravityMigrate\Schema\MigrationSide

The behaviour an importer and an exporter share.

They are the two halves of one migration and answer the same questions the same way: how a platform names itself, how a request is checked, what an empty field or form looks like on each platform, how a payload is normalised before it travels, and how a warning becomes a reported issue. A rule that lives in one half and not the other is a rule the two can disagree on.

Since: %ver%

Source: src/Schema/MigrationSide.php:24

Details

  • Kind: trait
  • Namespace: GravityKit\GravityMigrate\Schema

Methods

MethodDescription
get_slug(){@inheritdoc}
get_name(){@inheritdoc}
get_description(){@inheritdoc}
is_available(){@inheritdoc}
filter_optional_props(){@inheritdoc}
normalize_form_payload()Normalizes a form payload for adapter use.

Method Reference

get_slug()

public function get_slug(): string

{@inheritdoc}

Returns

  • string

Source: src/Schema/MigrationSide.php:41

get_name()

public function get_name(): string

{@inheritdoc}

Returns

  • string

Source: src/Schema/MigrationSide.php:48

get_description()

public function get_description(): string

{@inheritdoc}

Returns

  • string

Source: src/Schema/MigrationSide.php:55

is_available()

public function is_available(): bool

{@inheritdoc}

Returns

  • bool

Source: src/Schema/MigrationSide.php:62

filter_optional_props()

public function filter_optional_props( array $props, array $keep_empty_keys=[] ): array

{@inheritdoc}

Parameters

NameTypeDefaultDescription
$propsarray
$keep_empty_keysarray[]

Returns

  • array

Source: src/Schema/MigrationSide.php:180

normalize_form_payload()

public function normalize_form_payload( array $form ): array

Normalizes a form payload for adapter use.

Parameters

NameTypeDefaultDescription
$formarrayForm payload.

Returns

  • array

Since: %ver%

Source: src/Schema/MigrationSide.php:193