src/Forms/TreeDropdownField.php
public function setDisableFunction($callback)
    {
        if (!is_callable($callback, true)) {
            throw new InvalidArgumentException('TreeDropdownField->setDisableFunction(): not passed a valid callback');
        }

        $this->disableCallback = $callback;
        return $this;
    }
public function setDisableFunction($callback)
    {
        if (!is_callable($callback, true)) {
            throw new InvalidArgumentException('TreeDropdownField->setDisableFunction(): not passed a valid callback');
        }

        $this->disableCallback = $callback;
        return $this;
    }
public function setDisableFunction ( $ callback ) { if ( ! is_callable ( $ callback , true ) ) { throw new InvalidArgumentException ( 'TreeDropdownField->setDisableFunction(): not passed a valid callback' ) ; } $ this -> disableCallback = $ callback ; return $ this ; }
Set a callback used to disable checkboxes for some items in the tree

@param callable $callback
@return $this
Set a callback used to disable checkboxes for some items in the tree