silverstripe-blog/code/forms/gridfield/GridFieldConfig_BlogPost.php
Christopher Pitt 787c02a19d Clean up
2015-05-11 10:11:21 +12:00

20 lines
465 B
PHP

<?php
/**
* GridField config necessary for managing a SiteTree object.
*
* @package silverstripe
* @subpackage blog
*/
class GridFieldConfig_BlogPost extends GridFieldConfig_Lumberjack {
/**
* @param null|int $itemsPerPage
*/
public function __construct($itemsPerPage = null) {
parent::__construct($itemsPerPage);
$this->removeComponentsByType('GridFieldSiteTreeState');
$this->addComponent(new GridFieldBlogPostState());
}
}