src/Engine/CrudeSetupTrait/CustomActions.php
public function setCustomActions($name, $data = null)
    {
        $actions = is_array($name) ? $name : [$name => $data];

        foreach ($actions as $key => $value) {
            $this->customActions[$key] = $value;
        }

        return $this;
    }
public function setCustomActions($name, $data = null)
    {
        $actions = is_array($name) ? $name : [$name => $data];

        foreach ($actions as $key => $value) {
            $this->customActions[$key] = $value;
        }

        return $this;
    }
public function setCustomActions ( $ name , $ data = null ) { $ actions = is_array ( $ name ) ? $ name : [ $ name => $ data ] ; foreach ( $ actions as $ key => $ value ) { $ this -> customActions [ $ key ] = $ value ; } return $ this ; }
Sets the Custom actions.

@param string|array $name
@param array $data = null

@return self
Sets the Custom actions .