FieldtypeRepeater::getRepeaterPageParent() method

Return the parent used by the repeater pages for the given Page and Field

i.e. /processwire/repeaters/for-field-12/for-page-123/

Usage

// basic usage
$page = $fieldtypeRepeater->getRepeaterPageParent(Page $page, Field $field);

// usage with all arguments
$page = $fieldtypeRepeater->getRepeaterPageParent(Page $page, Field $field, bool $create = true);

Arguments

NameType(s)Description
pagePage
fieldField
create (optional)bool

Create if not exists? (default=true) 3.0.188+

Return value


FieldtypeRepeater methods and properties

API reference based on ProcessWire core version 3.0.248

Latest news

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits