mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #327 from silverstripe/add-hook-for-extension-filters-on-category-blog-posts
Added hook for extension filters on category blog posts
This commit is contained in:
commit
974e5636c4
@ -41,6 +41,17 @@ class BlogCategory extends DataObject implements CategorisationObject {
|
|||||||
'URLSegmentExtension',
|
'URLSegmentExtension',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return DataList
|
||||||
|
*/
|
||||||
|
public function BlogPosts() {
|
||||||
|
$blogPosts = parent::BlogPosts();
|
||||||
|
|
||||||
|
$this->extend("updateGetBlogPosts", $blogPosts);
|
||||||
|
|
||||||
|
return $blogPosts;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user