src/Extensions/BetterButtonDataObject.php
public function getBetterButtonsActions()
    {
        $buttons = $this->getDefaultButtonList("BetterButtonsActions");
        $actions = $this->createFieldList($buttons);

        $this->owner->extend('updateBetterButtonsActions', $actions);

        return $actions;
    }
public function getBetterButtonsActions()
    {
        $buttons = $this->getDefaultButtonList("BetterButtonsActions");
        $actions = $this->createFieldList($buttons);

        $this->owner->extend('updateBetterButtonsActions', $actions);

        return $actions;
    }
public function getBetterButtonsActions ( ) { $ buttons = $ this -> getDefaultButtonList ( "BetterButtonsActions" ) ; $ actions = $ this -> createFieldList ( $ buttons ) ; $ this -> owner -> extend ( 'updateBetterButtonsActions' , $ actions ) ; return $ actions ; }
Gets the default actions for all DataObjects. Can be overloaded in subclasses
<code>
public function getBetterButtonsActions()
{
$actions = parent::getBetterButtonsActions();
$actions->push(BetterButtonCustomAction::create('myaction','Do something to this record'));

return $actions;
}
</code>

@return FieldList
Gets the default actions for all DataObjects . Can be overloaded in subclasses <code > public function getBetterButtonsActions () { $actions = parent :: getBetterButtonsActions () ; $actions - > push ( BetterButtonCustomAction :: create ( myaction Do something to this record )) ;