PagesExportImport::arrayToPages() method
Import an array of page data to create or update pages
Provided array ($a) must originate from the pagesToArray() method format.
Usage
// basic usage
$items = $porter->arrayToPages(array $a);
// usage with all arguments
$items = $porter->arrayToPages(array $a, array $options = []);Arguments
| Name | Type(s) | Description |
|---|---|---|
$a | array | Array of import data |
$options (optional) | array |
|
Return value
PageArray int
Exceptions
Method can throw exceptions on error:
WireException
$porter methods and properties
API reference based on ProcessWire core version 3.0.252