PagesExportImport::arrayToPages()

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 = $pagesExportImport->arrayToPages(array $a);

// usage with all arguments
$items = $pagesExportImport->arrayToPages(array $a, array $options = []);

Arguments

NameType(s)Description
$aarray
$options (optional)array

Return value

Exceptions

Method can throw exceptions on error:

  • WireException


PagesExportImport methods and properties

API reference based on ProcessWire core version 3.0.251