GravityKit\GravityMigrate\Migration\BundleInspection
What a bundle carries, and whether this site could import it.
Reads the archive in place: nothing is staged, extracted, or written.
Since: %ver%
Source: src/Migration/BundleInspection.php:22
Details
- Kind:
class - Namespace:
GravityKit\GravityMigrate\Migration
Methods
| Method | Description |
|---|---|
of() | What the bundle carries, and what this site would make of it. |
Method Reference
of()
public static function of( string $path, ?callable $is_reachable=null )
What the bundle carries, and what this site would make of it.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$path | string | The bundle on this server. | |
$is_reachable | callable | null | null | Given the source URL, whether this site could fetch from it. Defaults to the check the IMPORT applies, which is the only answer worth having -- passed in so the rule can be exercised without booting the import engine. |
Returns
array| WP_Error
Since: %ver%
Source: src/Migration/BundleInspection.php:61