Hi,
I have a code
class Invoice exnteds DataObject {
...
public function getCMSActions() {
$fields = parent::getCMSActions();
$button = new FormAction('sendbutton', 'Send invoice');
$fields->push($sendbutton);
return $fields;
}
}
But it does not working.
SendButton not added.
How can I create new action - directly in dataobject ?
Best