src/Actions/BetterButtonCustomAction.php
public function setRedirectType($type)
    {
        if (!in_array($type, array(self::GOBACK, self::REFRESH))) {
            throw new Exception(
                "Redirect type must use either the GOBACK or REFRESH constants on BetterButtonCustomAction"
            );
        }

        $this->redirectType = $type;

        return $this;
    }
public function setRedirectType($type)
    {
        if (!in_array($type, array(self::GOBACK, self::REFRESH))) {
            throw new Exception(
                "Redirect type must use either the GOBACK or REFRESH constants on BetterButtonCustomAction"
            );
        }

        $this->redirectType = $type;

        return $this;
    }
Sets the behaviour on completion of the action, either refresh or go back to list.
See self::GOBACK and self::REFRESH constants

@param int $type
@throws Exception if the redirect type is not supported