targetFragment = $targetFragment; } public function getHTMLFragments( $gridField) { $data = new ArrayData(array( "TargetFragmentName" => $this->targetFragment, "LeftFragment" => "\$DefineFragment(buttons-{$this->targetFragment}-left)", "RightFragment" => "\$DefineFragment(buttons-{$this->targetFragment}-right)", )); return array( $this->targetFragment => $data->renderWith('Includes/GridFieldButtonRow') ); } }