$noticesmove()

Move notices from one Wire instance to another

Usage

// basic usage
$int = $notices->move(Wire $from, Wire $to);

// usage with all arguments
$int = $notices->move(Wire $from, Wire $to, array $options = []);

Arguments

NameType(s)Description
$fromWire
$toWire
$options (optional)array

Additional options:

  • types (array): Types to move Default:['messages','warnings','errors']
  • prefix (string): Optional prefix to add to moved notices text Default:''
  • suffix (string): Optional suffix to add to moved notices text Default:''

Return value

int

Number of notices moved


$notices methods and properties

API reference based on ProcessWire core version 3.0.252