code: public function setColumnForLinksLabels($columnNameOrClosure) {
          if (!is_string($columnNameOrClosure) && !($columnNameOrClosure instanceof DbExpr)) {
              throw new \InvalidArgumentException(
                  '$columnNameOrClosure argument must be a string or a closure'
              );
          }
          $this->columnForLinksLabels = $columnNameOrClosure;
          return $this;
      }
docs: Set column name or closure that will be used as label for links
  @param string|\Closure $columnNameOrClosure
  - string: column name
  - \Closure: function (RecordInterface $record) { return 'value' }
  @return $this
  @throws \InvalidArgumentException