Missing method

This commit is contained in:
Matias Griese
2020-10-14 10:37:45 +03:00
parent 6b9f1d8414
commit aa07c64440

View File

@@ -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();
}
/**