Flex: Added PageCollection::all() to mimick Pages class

This commit is contained in:
Matias Griese
2020-05-08 12:53:56 +03:00
parent 62c7cfcd10
commit 8a12abf795
2 changed files with 22 additions and 0 deletions

View File

@@ -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

View File

@@ -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
*