Added hook for extension filters on category blog posts

This commit is contained in:
Christopher Pitt 2015-11-17 16:06:19 +13:00
parent 3f23add5af
commit 34a45e21a7

View File

@ -40,6 +40,17 @@ class BlogCategory extends DataObject implements CategorisationObject {
private static $extensions = array( private static $extensions = array(
'URLSegmentExtension', 'URLSegmentExtension',
); );
/**
* @return DataList
*/
public function BlogPosts() {
$blogPosts = parent::BlogPosts();
$this->extend("updateGetBlogPosts", $blogPosts);
return $blogPosts;
}
/** /**
* {@inheritdoc} * {@inheritdoc}