silverstripe-blog/code/forms/gridfield/GridFieldConfig_BlogPost.php
2015-02-03 07:59:15 +00:00

19 lines
478 B
PHP

<?php
/**
* GridField config necessary for managing a SiteTree object.
*
* @package silverstripe
* @subpackage blog
*
* @author Michael Strong <mstrong@silverstripe.org>
**/
class GridFieldConfig_BlogPost extends GridFieldConfig_Lumberjack {
public function __construct($itemsPerPage = null) {
parent::__construct($itemsPerPage);
$this->removeComponentsByType('SiteTreeEditButton');
$this->addComponent(new GridFieldSiteTreeEditButton());
}
}