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

20 lines
465 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-05-09 16:33:12 +02:00
*/
class GridFieldConfig_BlogPost extends GridFieldConfig_Lumberjack {
2015-05-09 16:33:12 +02:00
/**
* @param null|int $itemsPerPage
*/
2013-07-21 12:23:35 +02:00
public function __construct($itemsPerPage = null) {
parent::__construct($itemsPerPage);
2015-05-09 16:33:12 +02:00
$this->removeComponentsByType('GridFieldSiteTreeState');
$this->addComponent(new GridFieldBlogPostState());
2013-07-21 12:23:35 +02:00
}
2015-05-09 16:33:12 +02:00
}