silverstripe-blog/code/forms/gridfield/GridFieldConfig_BlogPost.php

19 lines
477 B
PHP
Raw Normal View History

2013-07-21 12:23:35 +02:00
<?php
/**
* GridField config necessary for managing a SiteTree object.
2013-07-21 12:23:35 +02:00
*
* @package silverstripe
* @subpackage blog
*
2015-02-03 08:59:15 +01:00
* @author Michael Strong <mstrong@silverstripe.org>
2013-07-21 12:23:35 +02:00
**/
class GridFieldConfig_BlogPost extends GridFieldConfig_Lumberjack {
2013-07-21 12:23:35 +02:00
public function __construct($itemsPerPage = null) {
parent::__construct($itemsPerPage);
$this->removeComponentsByType('GridFieldSiteTreeState');
$this->addComponent(new GridFieldBlogPostState());
2013-07-21 12:23:35 +02:00
}
2015-02-03 08:59:15 +01:00
2013-07-21 12:23:35 +02:00
}