Merge pull request #328 from silverstripe/add-hook-for-extension-filters-on-tag-blog-posts

Added hook for extension filters on tag blog posts
This commit is contained in:
Damian Mooyman 2015-11-17 16:37:23 +13:00
commit 3ef14a6e1a

View File

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