diff --git a/wire/core/PageProperties.php b/wire/core/PageProperties.php index 0292c0bb..b8aef473 100644 --- a/wire/core/PageProperties.php +++ b/wire/core/PageProperties.php @@ -16,6 +16,9 @@ abstract class PageProperties { + const typePage = 1; + const typePageArray = 2; + /** * Page class helper object instances (one of each helper per ProcessWire instance, lazy loaded) * @@ -190,6 +193,24 @@ abstract class PageProperties { 'descendant' => 'findOne', ); + /** + * Method/property return types + * + * @var array + * @since 3.0.175 + * + */ + public static $traversalReturnTypes = array( + 'parent' => self::typePage, + 'rootParent' => self::typePage, + 'child' => self::typePage, + 'next' => self::typePage, + 'prev' => self::typePage, + 'children' => self::typePageArray, + 'parents' => self::typePageArray, + 'siblings' => self::typePageArray, + ); + /** * Name and status language properties (populated by LanguagesSupport module when applicable) *