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

18 lines
478 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
*
* @author Michael Strong <github@michaelstrong.co.uk>
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('SiteTreeEditButton');
2013-07-21 12:23:35 +02:00
$this->addComponent(new GridFieldSiteTreeEditButton());
}
}