src/PeskyCMF/Scaffold/Form/ManyToManyRelationRecordsFormInput.php
public function setDbQueryConditionsForDefaultOptionsLoader($conditonsAndOptions) {
        if (
            !is_array($conditonsAndOptions)
            && !($conditonsAndOptions instanceof DbExpr)
            && !($conditonsAndOptions instanceof \Closure)
        ) {
            throw new \InvalidArgumentException(
                '$conditonsAndOptions argument must be a string, DbExpr or a Closure'
            );
        }
        $this->dbQueryConditionsForDefaultOptionsLoader = $conditonsAndOptions;
        return $this;
    }
public function setDbQueryConditionsForDefaultOptionsLoader($conditonsAndOptions) {
        if (
            !is_array($conditonsAndOptions)
            && !($conditonsAndOptions instanceof DbExpr)
            && !($conditonsAndOptions instanceof \Closure)
        ) {
            throw new \InvalidArgumentException(
                '$conditonsAndOptions argument must be a string, DbExpr or a Closure'
            );
        }
        $this->dbQueryConditionsForDefaultOptionsLoader = $conditonsAndOptions;
        return $this;
    }
Set conditions for default options loader
@param array|\Closure $conditonsAndOptions
@return $this
@throws \InvalidArgumentException