Skip to main content

GravityKit\GravityMigrate\Schema\CollectsFieldReports

Gathers what converting a field had to say.

Converting one field can report three things besides the field itself: something that could not be carried, something worth telling whoever asked for the migration, and a Gravity Forms add-on the result needs installed. A report that is dropped never reaches the person migrating -- the field converts and the migration looks clean.

Since: %ver%

Source: src/Schema/CollectsFieldReports.php:15

Details

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

Methods

MethodDescription
file_upload_size_notice()What to say about a migrated file upload field's size limit.

Method Reference

file_upload_size_notice()

public static function file_upload_size_notice( $megabytes ): string

What to say about a migrated file upload field's size limit.

Parameters

NameTypeDefaultDescription
$megabytesmixedThe field's migrated size limit, in megabytes. Zero or non-numeric means the field sets no limit of its own.

Returns

  • string — A note naming both limits, only when the form's limit is larger than this site accepts and uploads would therefore fail on submission. Empty otherwise, including when this site's own limit cannot be read.

Since: %ver%

Source: src/Schema/CollectsFieldReports.php:56