mirror of
https://github.com/getgrav/grav.git
synced 2026-02-04 13:50:13 +01:00
Missing method
This commit is contained in:
@@ -825,6 +825,32 @@ class PageIndex extends FlexPageIndex implements PageCollectionInterface
|
||||
return $collection;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates new collection with only non-modular pages
|
||||
*
|
||||
* @return PageCollectionInterface The collection with only non-modular pages
|
||||
*/
|
||||
public function pages()
|
||||
{
|
||||
/** @var PageCollectionInterface $collection */
|
||||
$collection = $this->__call('pages', []);
|
||||
|
||||
return $collection;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates new collection with only modular pages
|
||||
*
|
||||
* @return PageCollectionInterface The collection with only modular pages
|
||||
*/
|
||||
public function modules()
|
||||
{
|
||||
/** @var PageCollectionInterface $collection */
|
||||
$collection = $this->__call('modules', []);
|
||||
|
||||
return $collection;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates new collection with only modular pages
|
||||
*
|
||||
@@ -832,10 +858,7 @@ class PageIndex extends FlexPageIndex implements PageCollectionInterface
|
||||
*/
|
||||
public function modular()
|
||||
{
|
||||
/** @var PageCollectionInterface $collection */
|
||||
$collection = $this->__call('modular', []);
|
||||
|
||||
return $collection;
|
||||
return $this->modules();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -845,11 +868,7 @@ class PageIndex extends FlexPageIndex implements PageCollectionInterface
|
||||
*/
|
||||
public function nonModular()
|
||||
{
|
||||
/** @var PageCollectionInterface $collection */
|
||||
$collection = $this->__call('nonModular', []);
|
||||
|
||||
return $collection;
|
||||
|
||||
return $this->pages();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user