mirror of
https://github.com/getgrav/grav.git
synced 2026-03-01 18:11:25 +01:00
Flex: Added PageCollection::all() to mimick Pages class
This commit is contained in:
@@ -393,6 +393,17 @@ class PageCollection extends FlexPageCollection implements PageCollectionInterfa
|
||||
return array_keys($list);
|
||||
}
|
||||
|
||||
/**
|
||||
* Mimicks Pages class.
|
||||
*
|
||||
* @return $this
|
||||
* @deprecated 1.7 Not needed anymore in Flex Pages.
|
||||
*/
|
||||
public function all()
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the items between a set of date ranges of either the page date field (default) or
|
||||
* an arbitrary datetime page field where end date is optional
|
||||
|
||||
@@ -759,6 +759,17 @@ class PageIndex extends FlexPageIndex implements PageCollectionInterface
|
||||
return $collection;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mimicks Pages class.
|
||||
*
|
||||
* @return $this
|
||||
* @deprecated 1.7 Not needed anymore in Flex Pages.
|
||||
*/
|
||||
public function all()
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates new collection with only visible pages
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user