src/FormFields/DropdownFormAction.php
public function bindGridField(Form $form, GridFieldDetailForm_ItemRequest $request)
    {
        $this->setForm($form);
        $this->gridFieldRequest = $request;

        foreach ($this->children as $child) {
            if (!$child instanceof BetterButton && !$child instanceof BetterButtonAction) {
                throw new Exception("DropdownFormAction must be passed instances of BetterButton");
            }

            $child->bindGridField($form, $request);
            $child->setIsGrouped(true);

            if ($child instanceof FormAction) {
                $child->setUseButtonTag(true);
            }
        }

        return $this;
    }
public function bindGridField(Form $form, GridFieldDetailForm_ItemRequest $request)
    {
        $this->setForm($form);
        $this->gridFieldRequest = $request;

        foreach ($this->children as $child) {
            if (!$child instanceof BetterButton && !$child instanceof BetterButtonAction) {
                throw new Exception("DropdownFormAction must be passed instances of BetterButton");
            }

            $child->bindGridField($form, $request);
            $child->setIsGrouped(true);

            if ($child instanceof FormAction) {
                $child->setUseButtonTag(true);
            }
        }

        return $this;
    }
Binds to the GridField request, and transforms the buttons
@param Form $form
@param GridFieldDetailForm_ItemRequest $request
@return $this
@throws Exception if instances of BetterButton are not passed