Skip to content

Commit 71f0893

Browse files
committed
Add pages() method.
1 parent c27127d commit 71f0893

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Utils.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ public static function wire($name='wire')
2525
return \ProcessWire\wire($name);
2626
}
2727

28+
/**
29+
* Shorcut for wire('pages')
30+
* @return \ProcessWire\Pages The ProcessWire $pages API variable.
31+
*/
32+
public static function pages()
33+
{
34+
return self::wire('pages');
35+
}
36+
2837
/**
2938
* Shortcut for wire('user')
3039
* @return \ProcessWire\User The ProcessWire $user API variable.

0 commit comments

Comments
 (0)