silverstripe-framework/forms/gridfield/GridFieldTitle.php
2012-02-20 14:50:53 +13:00

13 lines
287 B
PHP

<?php
class GridFieldTitle implements GridField_HTMLProvider {
function getHTMLFragments($gridField) {
return array(
'header' => $gridField->customise(array(
'NewLink' => Controller::join_links($gridField->Link('item'), 'new')
))->renderWith('GridFieldTitle')
);
}
}
?>