src/PeskyCMF/Scaffold/ItemDetails/ManyToManyRelationRecordsValueCell.php
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;
    }
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;
    }
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 ; }
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
Set column name or closure that will be used as label for links