code: public function setOptionLabelColumnForDefaultOptionsLoader($columnNameOrClosure) {
          if (
              !is_string($columnNameOrClosure)
              && !($columnNameOrClosure instanceof DbExpr)
              && !($columnNameOrClosure instanceof \Closure)
          ) {
              throw new \InvalidArgumentException(
                  '$columnNameOrClosure argument must be a string, DbExpr or a Closure'
              );
          }
          $this->optionLabelColumnForDefaultOptionsLoader = $columnNameOrClosure;
          return $this;
      }
docs: Set source for options labels
  @param string|\Closure $columnNameOrClosure
  - string: column name
  - \Closure: function (RecordInterface $record) { return 'value' }
  @return $this
  @throws \InvalidArgumentException