13 lines
287 B
PHP
Raw Normal View History

2012-02-09 16:02:47 +13:00
<?php
class GridFieldTitle implements GridField_HTMLProvider {
function getHTMLFragments($gridField) {
return array(
2012-02-20 14:50:53 +13:00
'header' => $gridField->customise(array(
'NewLink' => Controller::join_links($gridField->Link('item'), 'new')
))->renderWith('GridFieldTitle')
2012-02-09 16:02:47 +13:00
);
}
}
?>