ProcessPageEdit::addTab() method

Add a tab with HTML id attribute and label

Label may contain markup, and thus you should entity encode text labels as appropriate.

Usage

// basic usage
$processPageEdit->addTab(string $id, string $label);

// usage with all arguments
$processPageEdit->addTab(string $id, string $label, $wrapper = null);

Arguments

NameType(s)Description
idstring
labelstring
wrapper (optional)InputfieldWrapper, null

ProcessPageEdit methods and properties

API reference based on ProcessWire core version 3.0.244

“ProcessWire is like a breath of fresh air. So powerful yet simple to build with and customise, and web editors love it too.” —Margaret Chatwin, Web developer