silverstripe-framework/forms/gridfield/GridFieldTitle.php

13 lines
287 B
PHP
Raw Normal View History

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