mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
13 lines
287 B
PHP
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')
|
|
);
|
|
}
|
|
}
|
|
|
|
?>
|