kartik\grid\ColumnTrait::getColumnKey PHP Method

getColumnKey() protected method

Generate an unique column key
protected getColumnKey ( ) : mixed
return mixed
    protected function getColumnKey()
    {
        if (!empty($this->attribute)) {
            $key = $this->attribute;
        } elseif (!empty($this->label)) {
            $key = $this->label;
        } elseif (!empty($this->header)) {
            $key = $this->header;
        } else {
            $key = get_class($this);
        }
        return hash('crc32', $key);
    }